![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| wait ${!} | risshanth | Shell Programming and Scripting | 2 | 06-06-2008 03:57 AM |
| wait / sleep what to use??? | gkrishnag | UNIX for Dummies Questions & Answers | 1 | 09-19-2006 05:13 AM |
| Need to execute 2 scripts, wait, execute 2 more wait, till end of file | halo98 | Shell Programming and Scripting | 1 | 08-01-2006 04:42 PM |
| I/O wait Problem | unavb | UNIX for Dummies Questions & Answers | 5 | 02-09-2006 07:45 PM |
| 86% CPU for wait | big123456 | UNIX for Advanced & Expert Users | 3 | 11-04-2005 10:07 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
About wait
Hi everyone
I'm novice at Unix programming and I hope to post this thread in the correct place. I have the following doubts: 1 Suppose we have some processes which are B's children process and another process A which has no relation with B and its children. Can A do wait () for a children of B even if A is not the parent in any way? |
|
|||||
|
waiting consumes the zombie. If some other process did that the parent could not learn the exit status of its own children. For security, one user's process cannot affect another user's process. But if you own the process or you are root, you can check it. Try to use the kill system call to send signal zero to the process in question. Signal zero has no effect on the process. But the process must exist or the kill() system call will fail.
|
|
||||
|
Sure. The reasoning of it is the entire design architecture
behind a session and process group. If you are not familiar with these unix concepts programatically W.Richard Stevens is an invaluable resource. It sounds like you may be coming from a windows environment. As Perderabo notes the ability for a process to wait on another processes session or process group introduces ineradicable security issues for unix and unix-alikes. A threaded model is more easily adapted because of shared address space. My advice is to use threads if you are uncomfortable with the process paradigm. |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|