loop accept V; end accept; accept P; end accept; end loop;
The problem: Is this equivalent to a semaphore? If not, describe a behavior you would expect of calls to the P and V entries of this task that is different from the behavior you would expect of a semaphore.
Assignment: Write the code for the procedure tick. This routine should never allow the apparent clock speed to vary by more than two percent as it adjusts for errors reported to it through error.
Assignment: Write code for a process you can run on each machine that has a clock server to keep that clock server running at the same speed as the other clocks on the net. This code should inspect all the other clocks on the net every ten minutes, reject those measurements that involved unusual trip times, and average the errors with regard to the others in order compute the amount by which the current clock should be adjusted.