EECE-4029 Operating Systems Fall 2016
Memory Barriers

processes, mutex, semaphores, memory management, producer-consumer, files, deadlock, more..

Sample code and documentation

barriers.tar     All code and Makefile in a tar file
Makefile     For all code below
Userland Code (simulations):
01-barrier.c     Various simulations of code separated over two threads.
11-barrier.c     Simulation of above with no barriers. See run documentation below.
12-barrier.c     Simulation with a read barrier. See run documentation below.
13-barrier.c     Simulation with a write barrier. See run documentation below.
14-barrier.c     Simulation with a read and a write barrier. Documentation below.
15-barrier.c     See run documentation below
16-barrier.c     See run documentation below
Run documentation    
Why memory barriers?    
Memory barriers