FreeRTOS Support Archive
The FreeRTOS support forum is used to obtain active support directly from Real
Time Engineers Ltd. In return for using our top quality software and services for
free, we request you play fair and do your bit to help others too! Sign up
to receive notifications of new support topics then help where you can.
This is a read only archive of threads posted to the FreeRTOS support forum.
The archive is updated every week, so will not always contain the very latest posts.
Use these archive pages to search previous posts. Use the Live FreeRTOS Forum
link to reply to a post, or start a new support thread.
[FreeRTOS Home] [Live FreeRTOS Forum] [FAQ] [Archive Top] [August 2013 Threads] how to monitor those taskPosted by vincent on August 9, 2013 Hi:
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 taskPosted 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.
Regards.
RE: how to monitor those taskPosted 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 taskPosted 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.
Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.
|