正在加载图片...
5.3.1 What is semaphore? (8/10 Binary semaphore primitives struct binary semaphore enum (zero, one) value; crueueType queue void semwaitB(binary semaphore s) if(s value = 1) s, value o else place this process in s queue block this process; void semsignalB (semaphore s) if(s queue. is empty() s. value 1 else remove a process p from s queue place process p on ready listi Figure 5.4 A Definition of Binary Semaphore Primitives5.3.1 What is semaphore?(8/10) • Binary Semaphore Primitives 11 P V
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有