barrier, future, latch and semaphore