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


how to monitor those task

Posted by vincent on August 9, 2013

like TELNET, FTP, SSH, HTTP server, it blocks in lwip_recv() function, how to monitor it is running or dead?

RE: how to monitor those task

Posted by Richard on August 9, 2013
Not sure I understand your question. Are you just asking how to tell if a task is still running? If so then this is done in all the standard demos. Have the task you are monitoring increment a number at key points in its functionality, then have a high priority monitoring task check the number is incrementing as expected.


RE: how to monitor those task

Posted by vincent on August 9, 2013
yes, i need to monitor one task is running or not . but those task blocks in lwip_recv() function and never exist, there is no demo about it

RE: how to monitor those task

Posted by Richard Damon on August 9, 2013
One solution would be to have it not block with a large/infinite timeout, but to use a short timeout, and test for the time out, and when it happens set a flag to say you are running and go back into the block for a little bit. If the flag doesn't get bumped over a time period longer than that timeout (or any other busy time the task might have) then you can assume something is wrong.

The one problem with this, is that there isn't much you can really do if a task dies, as you don't really know what might need to be cleaned up. It isn't like a process on a "big" computer which has a fully dedicated environment to run in and can be started anew.

[ 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