Hi all ,
Can anyone tell me about a good tutorial on the POSIX thread handling.
I specifically need to know about the return values on thread termination
Thanks in advance
on 12/31/2009 – Made popular on 12/31/2009
I am trying to assign a routine to the posix thread. When it is completing the routine, the calling thread is not exiting. Every time i am creating a new thread and assigning a same routine to the new thread in while loop. New thread is created only for 379 times, after that thread creation is failed with status 11 means PTHREAD_MAX_LIMIT has been reached.
I want to implement a timer handling module in my system using Linux POSIX timers API.
A user can start a timer, and give a callback.
Invocation of the callback will be done from a thread (and not from the signal handler).
I was thinking of setting timer_create() with SIGEV_SIGNAL, and the thread waiting for signals using sigwaitinfo(), (the signal arg will give the timerId which will invoke the