volatile (in comp.lang.c)

Eugene D. Brooks III brooks at lll-crg.llnl.gov
Thu Jun 2 04:04:11 AEST 1988


In article <206 at gannet.cl.cam.ac.uk> scc at cl.cam.ac.uk (Stephen Crawley) writes:
>A more recent solution to the mutual exclusion is NOT expensive for multiple
>processors:
>
>  "A Fast Mutual Exclusion Algortithm"
>  Leslie Lamport, Nov 14 1985.
>  Report #5, DEC Systems Research Centre
>
I have coded Lamports algorithm on the Sequent Balance and it actually
beat the performance of their ALM hardware that lives on the Multibus.
Lamports algorithm is a good practical algorithm for machines that
done have test_and_set support which runs at the same speed as main
memory.  If a collision for the lock occurs the algorithm is order
Nprocessors in time, which is why you do want test and set hardware
support.  Lamport's paper is very recommended reading for those interested
in shared memory multiprocessing.



More information about the Comp.lang.c mailing list