Design of OpenMP (2)
Synchronization
- Simple implicit synch at beginning and end of control structures
- Explicit synch for more complex patterns: BARRIER, CRITICAL, ATOMIC, FLUSH, ORDERED
Runtime library
- Manages modes for forking and scheduling threads
- E.g, OMP_GET_THREAD_NUM