Quality RTOS & Embedded Software

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




Loading

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 ?

vincent

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 ]    [ Sitemap ]    [ ]




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

Latest News

FreeRTOS kernel V10 is available for immediate download. Now MIT licensed.


FreeRTOS Partners

ARM Connected RTOS partner for all ARM microcontroller cores

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