Search Results

Search: Posts Made By: JCR
Forum: Programming 06-08-2010
4,384
Posted By Corona688
If the number of loops, hence the number of...
If the number of loops, hence the number of children, could be infinite, you really should call wait() for all its children. But you don't need to block in order to do so, just create a thread for...
Forum: Programming 06-08-2010
4,384
Posted By Corona688
The process terminates, but isn't removed from...
The process terminates, but isn't removed from the process table until you wait() for it. Things like runtime statistics and return value can still be gleaned from it until you do, which is why they...
Forum: Programming 06-08-2010
4,384
Posted By Corona688
You're not calling wait() anywhere, so you may be...
You're not calling wait() anywhere, so you may be generating lots of zombie processes -- processes that have completed but haven't been waited for.

You may wish to keep a thread around that does...
Forum: Programming 06-08-2010
4,384
Posted By Corona688
fork and exec. fork() copies your process but...
fork and exec. fork() copies your process but returns a different value to the copy so it can take a new direction. exec() replaces it with a different program. the original program can do other...
Showing results 1 to 4 of 4

 
All times are GMT -4. The time now is 12:00 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy