Changes between Version 9 and Version 10 of Challenge


Ignore:
Timestamp:
03/12/19 04:02:23 (7 years ago)
Author:
siegel
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Challenge

    v9 v10  
    55A barrier is a synchronization operation that is invoked by all threads or processes
    66in a concurrent system.  The defining property is that no process can leave
    7 the barrier until every process has entered the barrier.  A barrier should also
    8 be re-useable, i.e., it can be invoked more than once.
     7the barrier until every process has entered the barrier.  Of course, a barrier
     8should not deadlock --- once all processes have entered, they should all
     9be able to leave.   A barrier should also be re-useable, i.e., it can be invoked
     10more than once.
    911
    1012The dissemination barrier works as follows.   There are n processes, numbered
    11 0 .. n-1.    The ordere is treated as cyclical.   The protocol goes through
    12 ceil(log_2(n)) stages.   At stage i, each process sends a message to the process
    13 2^i to its "right", and waits to receive a message from the process 2^i to its "left".
     130 .. n-1.    The order is treated as cyclical.   The protocol goes through
     14ceil(log,,2,,(n)) stages, i=0,1,....   At stage i, each process sends a message to the process
     152^i^ to its "right", and waits to receive a message from the process 2^i^ to its "left".
    1416The content of the message is irrelevant (and can be empty).
    1517