A child may be forked to send a signal to the parent at intervals. That can provide a heartbeat for real-time scheduling, a testbench for the parent's sig handlers, or a source of random activity for a simulation. The advantage of fork() in these applications is that the signal is independent of the parent's state of execution.
After Compline,
Zaxo
In reply to Re: Practical, efficient uses for fork()
by Zaxo
in thread Practical, efficient uses for fork()
by vilk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |