题目内容

设与某资源相关的信号量初值为3,当前值为1,若M表示该当前资源的可用个数,N表示等待该资源的进程数,则M,N分别是( )

A. 0,1
B. 1,0
C. 2,1
D. 1,2

查看答案
更多问题

设有N个进程共享一程序段,如果每次最多允许M(M

A. N
B. 1
C. M
D. 0

设有N个进程共享一互斥段,如果每次只允许一个进程进入互斥段,用PV操作来解决,则信号量值的范围是( ).

A. [1~N]
B. [1~-(N-1)]
C. (-∞~+∞)
D. [-N~+N]

下列说法错误的是()

A. 信号量是一个整型变量
B. 信号量的值大于零,则表示当前可用资源的数量
C. 信号量的值小于零,则其绝对值表示等待使用该资源的进程个数
D. PV操作用原语实现

Fill in each blank of the text summary with an appropriate word from the box. Please note that five words from the list are redundant.a. excited b. shortly c. strange d. atee. spread f. musicians g. liquid h. healthi. surf j. discovery k. luckily l. boilm. laptops n. famous o. serveCoffee is the world’s most popular drink. Although people all over the world drink it, it is said that too much coffee is not good for one’s 1. ______ . The 2. ______ of coffee is an interesting story. Around the year 700, in Ethiopia, a shepherd named Kaldi found his goats became very 3. ______ 4. ______ after eating some plants. He and other people tried to 5. ______ the plants and then drank the 6. ______ . They, too, couldn’t have a good rest at night. This drink became popular and 7. ______ from Ethiopia to the Arabworld, Turkey, Europe, and other parts of the world. Many 8. ______ writers and 9. ______ loved coffee. Nowadays, coffee bars and shops 10. ______ coffee in various sizes and flavors.

答案查题题库