Quality RTOS & Embedded Software

 Real time embedded FreeRTOS RSS feed 
Quick Start Supported MCUs PDF Books Trace Tools Ecosystem


Loading

quence concepts

Posted by krishna kumar on March 1, 2008
hi,
I am woking on freeRTOS,where i using quence concept when my quencecreate is not created inside my for loop but when i use quence create outside for loop quence is created correctly but resources are not shared properly where my demo application working properly...wht its works properly....


xQueue = xQueueCreate( 10,sizeof( unsigned portLONG ));)//where q is created properly bt not sharing resources properly

for(;;)
{
xQueue = xQueueCreate( 10, sizeof( unsigned portLONG ) );)//where q is not created
if( xQueue != 0
{

if(xQueueSend( xQueue,( void * ) &ulVar, ( portTickType ) 10 ) ==1 )
{
k++;
}

}
}

RE: quence concepts

Posted by Richard on March 1, 2008
If you create a queue each time round a for loop without deleting any of the created queues then you will eventually run out of memory and not be able to create any more queues.

I'm not sure what you mean by "where q is created properly bt not sharing resources properly" - what do you mean by not sharing the resource properly?

Regards.


[ Back to the top ]    [ About FreeRTOS ]    [ Privacy ]    [ Sitemap ]    [ ]


Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.

Latest News

NXP tweet showing LPC5500 (ARMv8-M Cortex-M33) running FreeRTOS.

Meet Richard Barry and learn about running FreeRTOS on RISC-V at FOSDEM 2019

Version 10.1.1 of the FreeRTOS kernel is available for immediate download. MIT licensed.

View a recording of the "OTA Update Security and Reliability" webinar, presented by TI and AWS.


Careers

FreeRTOS and other embedded software careers at AWS.



FreeRTOS Partners

ARM Connected RTOS partner for all ARM microcontroller cores

Espressif ESP32

IAR Partner

Microchip Premier RTOS Partner

RTOS partner of NXP for all NXP ARM microcontrollers

Renesas

STMicro RTOS partner supporting ARM7, ARM Cortex-M3, ARM Cortex-M4 and ARM Cortex-M0

Texas Instruments MCU Developer Network RTOS partner for ARM and MSP430 microcontrollers

OpenRTOS and SafeRTOS

Xilinx Microblaze and Zynq partner