next up previous index
Next: Bank Queue Up: Dividing the Pie Previous: Dividing the Pie

Exercises

1
Rewrite the program discussed in section 5.2.3 to read n from standard input, so that the broadcast operation actually makes sense.
Hint
Make only the console process read standard input, then broadcast the number to other processes as shown in section 5.2.3.
Hint
Input the number in the PBS script using the here input feature of the shell.



Zdzislaw Meglicki
2004-04-29