timing control for parallel processes

Posted by omrihsan on Stack Overflow See other posts from Stack Overflow or by omrihsan
Published on 2010-03-15T19:57:10Z Indexed on 2010/03/15 19:59 UTC
Read the original article Hit count: 188

how can i control two processes to run alternately in separate terminal windows. for example i run the code for each on separate terminal windows at 11:59 and both of them wait for the time to be 12:00. at this moment process one starts execution and process two waits for say 10 seconds. then they switch, process two executes and process one waits. in this way they take turns until the process is complete.

© Stack Overflow or respective owner

Related posts about time

Related posts about multiple-processes