LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 04-29-2009, 12:13 AM   #1
Santoshkb
Member
 
Registered: Sep 2007
Posts: 56

Rep: Reputation: 15
Child thread dead How main thread can gets notifies


Is there a way when thread gets killed the can there be monitoring thread or can the main thread gets notified of accidental death

Last edited by Santoshkb; 04-29-2009 at 01:36 AM.
 
Old 04-29-2009, 03:17 AM   #2
bhaslinux
Member
 
Registered: Oct 2003
Location: UnitedKingdom
Distribution: Debian Bullseye
Posts: 357

Rep: Reputation: 49
1.use a shared space to commuicate
2. use gettid to get the thread ID
3. do a wait/kill system call to get the status of the thread.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Get Process size and Thread count for a particular running process haseit Linux - Newbie 2 01-22-2009 11:09 PM
monitor processes to be notified when a new process is started? cfh Programming 2 10-03-2005 07:07 PM
script to check if process is dead or running rspurlock *BSD 6 04-12-2004 11:32 PM
how to get notified on activity on a thread LarryDoliver LQ Suggestions & Feedback 4 10-01-2003 03:36 PM
kernel compile thread - dead link itsjustme Slackware 0 09-04-2003 09:05 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 06:58 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration