Quality RTOS & Embedded Software

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


clean up deleted task 's resouce in sho...

Posted by vincent on August 19, 2013
HI :
is there a way to clean up deleted task's resource in short time by IDLE task and create new task at once ?


RE: clean up deleted task 's resouce in sho...

Posted by Richard Damon on August 19, 2013
Generally, it doesn't make sense for the task to be deleted and then recreated right away, so you may be doing something wrong.

The idle task will run as soon as there is no higher priority task ready to use time, so there are two ways to make this happen:
1) Make sure that all tasks are pending on something or,
2) Temporarily raise the priority of the idle task, and have code in the idle hook put it back down (the idle hook may need to let the idle task run twice, as it might be pass the point of doing the cleanup when the first cycle runs.

RE: clean up deleted task 's resouce in sho...

Posted by vincent on August 19, 2013
in web application, i need to create new tasked to deal something , then return back to web application , if i don't create new task to do this , web application seems to be halt .
dues to increase system heap size, i plan to merge some task in one task

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

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

Latest News

FreeRTOS v10.2.0 is available for immediate download. MIT licensed, and including RISC-V and ARMv8-M (Cortex-M33) demos.

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

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


FreeRTOS and other embedded software careers at AWS.

FreeRTOS Partners

ARM Connected RTOS partner for all ARM microcontroller cores

Cadence Tensilica Cortes

Espressif ESP32

IAR Partner

Microchip Premier RTOS Partner

RTOS partner of NXP for all NXP ARM microcontrollers





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