Changes between Version 9 and Version 10 of Challenge
- Timestamp:
- 03/12/19 04:02:23 (7 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Challenge
v9 v10 5 5 A barrier is a synchronization operation that is invoked by all threads or processes 6 6 in 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. 7 the barrier until every process has entered the barrier. Of course, a barrier 8 should not deadlock --- once all processes have entered, they should all 9 be able to leave. A barrier should also be re-useable, i.e., it can be invoked 10 more than once. 9 11 10 12 The dissemination barrier works as follows. There are n processes, numbered 11 0 .. n-1. The order eis treated as cyclical. The protocol goes through12 ceil(log _2(n)) stages. At stage i, each process sends a message to the process13 2^i to its "right", and waits to receive a message from the process 2^ito its "left".13 0 .. n-1. The order is treated as cyclical. The protocol goes through 14 ceil(log,,2,,(n)) stages, i=0,1,.... At stage i, each process sends a message to the process 15 2^i^ to its "right", and waits to receive a message from the process 2^i^ to its "left". 14 16 The content of the message is irrelevant (and can be empty). 15 17
