Monitor thread execution (replacement for waitpid)

Joel Sherrill joel.sherrill at oarcorp.com
Tue Aug 11 18:06:18 UTC 2015



On 8/11/2015 11:28 AM, Saeed Ehteshamifar wrote:
> Hi,
>
> Because of different process model, RTEMS doesn't support processes. Therefore many POSIX functions (like fork, exec*) are unimplementable on RTEMS.
> Now my question is how to monitor child thread status (if it is correct to use the term "child" in this context) just like what "waitpid" does? Does it make a difference if the thread has been created via classical API or POSIX?
> More specifically, I'm interested to directives like WIFEXITED, WEXITSTATUS, WIFSIGNALED, etc.

There is only a single process so those are not supported at all.

If a thread crashes with a memory fault, the CPU will generate a trap
and the entire program is halted.

  
> Kind Regards,
> SAeeD

-- 
Joel Sherrill, Ph.D.             Director of Research & Development
joel.sherrill at OARcorp.com        On-Line Applications Research
Ask me about RTEMS: a free RTOS  Huntsville AL 35805
Support Available                (256) 722-9985


More information about the users mailing list