【单选题】【消耗次数:1】
如果进程Pa对信号量S执行P操作,则信号量S的值应()。
加1
减1
等于0
小于0
参考答案:
复制
纠错
相关题目
【单选题】 如果进程Pa对信号量S执行P操作,则信号量S的值应( )。
①  加1
②  减1
③  等于0
④  小于0
【单选题】 如果进程Pa对信号量S执行P操作,则信号量S的值应( )。
①  加1
②  减1
③  等于0
④  小于0
【单选题】 如果信号量S的值是0 , 此时进程A执行P(S)操作,那么,进程A会( )。
①  继续运行
②  进入阻塞态,让出CPU
③  进入就绪态,让出CPU
④  继续运行,并唤醒S队列头上的等待进程
【单选题】 如果信号量S的值是0,此时进程A执行P(S)操作,那么,进程A会()。
①  继续运行
②  进入阻塞态,让出CPU
③  进入就绪态,让出CPU
④  继续运行,并唤醒S队列头上的等待进程
【单选题】 若P、V操作的信号量S初值为2,当前值为 -1,则表示有( )个等待进程。
①  0
②  1
③  2
④  3
【单选题】 若P、V操作的信号量S初值为2,当前值为 ?1,则表示有( )个等待进程。
①  0
②  L
③  2
④  3
【单选题】 若P、V操作的信号量S初值为2,当前值为1,则表示有()个等待进程。
①  0
②  l
③  2
④  3
【单选题】 在执行V操作时,当信号量的值( ),应释放一个等待该信号量的进程。
①  小于0
②  大于0
③  小于等于0
④  大于等于0
【单选题】 在执行V操作时,当信号量的值( ),应释放一个等待该信号量的进程。
①  小于0
②  大于0
③  小于等于0
④  大于等于0
【单选题】 在执行V操作时,当信号量的值(),应释放一个等待该信号量的进程。
①  小于0
②  大于0
③  小于等于0
④  大于等于0
随机题目
【单选题】 Thanks to Mr. Wang, he kept____ us to remember the important things.?
①  to ask ?
②  asking ?
③  to be asked ?
④  not asking?
【单选题】 They will inform him ____ any progress they make in the experiment.
①  about
②  on
③  of
④  with
【单选题】 The reason I didn’t go to school that day was ____ill.
①  due to
②  that I fell
③  because of falling
④  because I fell
【单选题】 Chinahas launched a number of ____satellites since the 1970s.
①  information
②  Communication
③  TV
④  message
【单选题】 The weather in Harbin is quite different from____ in Hainan.
①  the one
②  one
③  that
④  it
【单选题】 24. The music sounded____. I enjoyed every minute of it
①  well
②  boring
③  wonderfully
④  beautiful
【单选题】 Julie has gained more experience than____ in her restaurant and the customers like her.
①  any waitress
②  other waitresses
③  the waitress
④  any other waitress
【单选题】 I eagerly answered all the questions, never ____ much about making mistakes.
①  worry
②  worried
③  worries
④  worrying
【单选题】 —Good morning, John. How are you doing?—____.
①  Im pleased.
②  Good night.
③  Not so bad. And you?
④  How do you do?
【单选题】 We often get ____ when people cut in line.
①  annoying
②  annoyed
③  to annoy
④  annoy