Re: Is my created thread still running ???
"Zeuner, Axel" <[email protected]> Thu, 6 Mar 2003 11:31:53 +0100
| Newsgroups | gmane.linux.ngpt.user |
|---|---|
| Message-ID | <036668505E95D5119C4C0002A56BD27A02EBF363@sv035505.zit.commerzbank.com> |
Hi Rohan, your question was: >is there any function through which i can know that a particular is still active or exited. You may check the existence of a thread with pthread_kill(threadIdOfTheThread,sigNo). In the case of sigNo=0 only checks are done and no signal is sent. Therefore if you get a zero return code from pthread_kill the thread is still alive. Best regards Axel Zeuner Dr. Axel Zeuner Senior Consultant Thales Information Systems GmbH SBU Finance Hamburger Allee 26-28, D-60486 Frankfurt am Main Tel.: +49(0)69 219 386 0 Fax: +49(0)69 219 386 5 http://www.thales-is.com/de mailto:[email protected] -------------------------------------------------------------------------- Murphy's Law fails only when you try to demonstrate it, and thus succeeds.