kmting
2011-07-06 01:43:08 UTC
If some program calls fork() but all pids are being used.Although some
pids already exited,they are still needed by other program.If this
happen,what should we do?
should we make the fork() to wait until one of the pids can be reuse?
Or should we just reuse one of the pid even if other program need it later?
Thank you
pids already exited,they are still needed by other program.If this
happen,what should we do?
should we make the fork() to wait until one of the pids can be reuse?
Or should we just reuse one of the pid even if other program need it later?
Thank you