No... still not quite right, but I like the way you've used the kill( pid ) thing! The messages are printing one at a time rather than very quickly, repeatedly until the process change... not far...
Type: Posts; User: JM1082
No... still not quite right, but I like the way you've used the kill( pid ) thing! The messages are printing one at a time rather than very quickly, repeatedly until the process change... not far...
No Salem, that's not what I want. But its good to see the pause & alarm are working together!
The idea is to have the parent print line after line for 5 seconds & pause, then the child print line...
So would you recommend I send the SIGALRM from the handler?
The program is never meant to stop, just continually print whichever process isn't paused! Hence infinite loops!
Hi all,
I'm trying to write a program which will give two processes 5 seconds each to write their message to the screen.
The problem is that the pause function isn't unpausing when the second...