Quality RTOS & Embedded Software

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




Loading

why task is not deleted completely?

Posted by vincent on November 5, 2012
Hi Recard:
I create a task with STACK RAM 128*8 Bytes, and use vTaskDelete(handle) in another task, then call vTaskDump to check
the task status, it is really deleted in task list. then, i create it again. then delete it in anothere task, after about 5 ~ 8 times operation, the vTaskDump show that the task 's status is D(delete), but the task is also in task list. vTaskDump always displayit . after wait 3 minutes ,vTaskDelay still show it . why ? what cause it ?
by the way , the task is written with socket API,, i also close the sockets when delete it .

vincent

RE: why task is not deleted completely?

Posted by Richard on November 5, 2012
I can't find any reference to a function called vTaskDump() in the distribution, nor know how a task is created using a sockets() API (are you using a TCP/IP stack?), but talking generally....

When you call vTaskDelete() the task is removed from the pool of tasks that are able to run, and added to a pool of tasks that are waiting to be cleaned up. The actual clean up is done by the idle task.

Are you starving the Idle task of processing time, preventing it cleaning up deleted tasks?

Regards.

RE: why task is not deleted completely?

Posted by Jerry Durand on November 5, 2012
Or, as I ran into some time back, I had the wrong heap.c loaded so the clean-up pool was never cleaned.

RE: why task is not deleted completely?

Posted by vincent on November 6, 2012
hi rechard:

i am sorry that my words is confusing
first, i use vTaskList to dump current running tasks,
second, my task is a net application written by SOCKET API
as you describe, the idle task doesn't clean up the deleted task, maybe the idle task hasn't got control to implement ?
in my system, there are more than 10 running task together .

vincent


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




Copyright (C) 2004-2010 Richard Barry. Copyright (C) 2010-2016 Real Time Engineers Ltd.
Any and all data, files, source code, html content and documentation included in the FreeRTOSTM distribution or available on this site are the exclusive property of Real Time Engineers Ltd.. See the files license.txt (included in the distribution) and this copyright notice for more information. FreeRTOSTM and FreeRTOS.orgTM are trade marks of Real Time Engineers Ltd.

Latest News:

FreeRTOS V9.0.0 is now available for download.


Free TCP/IP and file system demos for the RTOS


Sponsored Links

⇓ Now With No Code Size Limit! ⇓
⇑ Free Download Without Registering ⇑


FreeRTOS Partners

ARM Connected RTOS partner for all ARM microcontroller cores

Renesas Electronics Gold Alliance RTOS Partner.jpg

Microchip Premier RTOS Partner

RTOS partner of NXP for all NXP ARM microcontrollers

Atmel RTOS partner supporting ARM Cortex-M3 and AVR32 microcontrollers

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

Xilinx Microblaze and Zynq partner

Silicon Labs low power RTOS partner

Altera RTOS partner for Nios II and Cortex-A9 SoC

Freescale Alliance RTOS Member supporting ARM and ColdFire microcontrollers

Infineon ARM Cortex-M microcontrollers

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

Cypress RTOS partner supporting ARM Cortex-M3

Fujitsu RTOS partner supporting ARM Cortex-M3 and FM3

Microsemi (previously Actel) RTOS partner supporting ARM Cortex-M3

Atollic Partner

IAR Partner

Keil ARM Partner

Embedded Artists