【单选题】【消耗次数:1】
信号量S的初值为8,在S上执行了10次P操作,6次V操作后,S的值为( )。
10
8
6
4
参考答案:
复制
纠错
相关题目
【单选题】 信号量S的初值为8,在S上执行了10次P操作,6次V操作后,S的值为()。
①  10
②  8
③  6
④  4
【单选题】 如果进程Pa对信号量S执行P操作,则信号量S的值应( )。
①  加1
②  减1
③  等于0
④  小于0
【单选题】 如果进程Pa对信号量S执行P操作,则信号量S的值应( )。
①  加1
②  减1
③  等于0
④  小于0
【单选题】 如果进程Pa对信号量S执行P操作,则信号量S的值应()。
①  加1
②  减1
③  等于0
④  小于0
【单选题】 若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
【单选题】 如果信号量S的值是0 , 此时进程A执行P(S)操作,那么,进程A会( )。
①  继续运行
②  进入阻塞态,让出CPU
③  进入就绪态,让出CPU
④  继续运行,并唤醒S队列头上的等待进程
【单选题】 如果信号量S的值是0,此时进程A执行P(S)操作,那么,进程A会()。
①  继续运行
②  进入阻塞态,让出CPU
③  进入就绪态,让出CPU
④  继续运行,并唤醒S队列头上的等待进程
【单选题】 在操作系统中,对信号量S的P操作原语的定义中,使进程进入相应阻塞队列等待的条件是()。
①  S>0
②  S=0
③  S<0
④  S≠0
随机题目
【单选题】 Be ( ) of where weve come from and the spirit of our nation.
①  prove
②  proudly
③  proud
④  prouder
【单选题】 The union plans to raise the ( ) of overtime.
①  ignorance
②  insurance
③  issue
④  ideal
【单选题】 This washing powder will work miracles on these oil ( ).
①  stains
②  stain
③  stained
④  stainless
【单选题】 New businesses ( ) in this area.
①  thrive
②  thrill
③  thrift
④  threat
【单选题】 He moved to Ohio in 2005 where, ( )other things, he worked as a journalist.
①  awhile
②  amid
③  await
④  among
【单选题】 You need to ( ) to the local authority for a grant.
①  apply
②  applaud
③  appeal
④  arise
【单选题】 You should give your children more opportunities to have personal time and space to ( ) with friends or do whatever they want.
①  hang out
②  hang up
③  hang on
④  hang in
【单选题】 On this calendar you can find elective classes as well as review sessions and other events that were not part of ( ) class or exam time.
①  mandate
②  mandator
③  mandated
④  mandatory
【单选题】 The related ( ) are sufficient for you to collect the information you need for your presentation.
①  public
②  publications
③  republic
④  in public
【单选题】 Most of the runners in the London Marathon are raising money ( ).
①  in return
②  out of curiosity
③  for charity
④  on duty