how to know what 'fork()'ed and/or threads are running for a process
From: Steve (steve_at_hotmail.com)
Date: 07/30/04
- Next message: Allistar: ""Hiding" files under a mount point"
- Previous message: Robert E A Harvey: "Re: What is this .sheep/ that appeared in my home folder?"
- Next in thread: Juhan Leemet: "Re: how to know what 'fork()'ed and/or threads are running for a process"
- Reply: Juhan Leemet: "Re: how to know what 'fork()'ed and/or threads are running for a process"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Fri, 30 Jul 2004 10:30:32 +1000
Hi,
I have a process running on a dual processor machine. It basically
forks() itself and launches another process, which is basically run in
parallel on the second processor to utilize the two processors. I also
have another process that does the same thing using light-weight
processes (threads - pthread). How can I tell what 'slave' processes
belong to what 'master' process in the first case where I fork() another
process, as well as the second case where I have another thread spawned.
Is there something similar to the 'ps' command which can tell me such
info? I am running Redhat 9.0. Thanks
Steve
- Next message: Allistar: ""Hiding" files under a mount point"
- Previous message: Robert E A Harvey: "Re: What is this .sheep/ that appeared in my home folder?"
- Next in thread: Juhan Leemet: "Re: how to know what 'fork()'ed and/or threads are running for a process"
- Reply: Juhan Leemet: "Re: how to know what 'fork()'ed and/or threads are running for a process"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|