X hits on this document

Powerpoint document

Chapter 10 : Case Study - UNIX - page 16 / 48

160 views

0 shares

0 downloads

0 comments

16 / 48

Ceng 334 - Operating Systems

10-16

Thread Communication - mutexes

Threads use locks called mutexes for short-time locking a resource (say a shared buffer)

A mutex must be first created (and finally destroyed

Mutual exclusion is implemented by locking a mutex before accessing a resource and unlock it when they are done (like binary semaphores which is “0” or “1”, a mutex is either locked or unlocked)

Document info
Document views160
Page views160
Page last viewedThu Jan 19 07:29:15 UTC 2017
Pages48
Paragraphs407
Words2238

Comments