【单选题】【消耗次数: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
随机题目
【单选题】 I am not familiar with his character. what is the meaning of the character in the sentence ?( )
①  角色
②  汉字
③  人物
④  性格
【单选题】 I hope you will remember the parking area and the ( )number.
①  passport
②  coach
③  company
④  group
【单选题】 which the following choice is right about import meaning?( )
①  出口
②  植入
③  进口
④  放置
【单选题】 First please be ( ) during your travel,otherwise we will waste time.
①  on time
②  in time
③  at the time
④  by the time
【单选题】 The receptionist receives a client. What is the chinese meaning of the client in the sentence?( )
①  顾客
②  代理
③  律师
④  法官
【单选题】 I ( ) hope you will come to china again soon.
①  sincerity
②  since
③  sincerely
④  sincere
【单选题】 It’s ( )to arrive at 5:30 pm local time…
①  schedule
②  scheduled
③  scheduling
④  to scheduled
【单选题】 Please, just put your suitcase on the ( )
①  scales
②  weight
③  weigh
④  balance
【单选题】 The chinese meaning of the word geography is ( )
①  生物
②  地理
③  物理
④  哲学
【单选题】 Their knowledge should ( ) the various aspects
①  updated on
②  be updated
③  update one
④  be updated on