Implement a simple simulator
Blocking barrier & ordered
Nonblocking barrier