1.Mutex
2.Read-write locker
3.Condition lock
4. Semaphore
5.pipe/fifo
6.share memory
7. Message queue
5-7 seems not necessary.
Reference:
http://www.jxva.com/?act=blog!article&articleId=190
2.Read-write locker
3.Condition lock
4. Semaphore
5.pipe/fifo
6.share memory
7. Message queue
5-7 seems not necessary.
Reference:
Linux下多线程编程-Pthread与Semaphore的使用