Preferably done in Java. Also what would one notice as far as differences betwee
ID: 3843139 • Letter: P
Question
Preferably done in Java. Also what would one notice as far as differences between the runs, and how did the constant used affect the output... in what ways? Could you include brief comments explaining parts of the code and what purpose they have?
Make a C/C++ or Java program which creates two child processes/threads. Each child has a loop in it (do the loop 10 times). The loop consists of a print statement and a sleep (x) statement (where x is a random number from 1 to 3; you must compute a new random number for each call. If you do not know how to create child processes in Cor a thread in Java, you can look on the Internet to find examples