【单选题】【消耗次数:1】
在操作系统中,对信号量S的P操作原语的定义中,使进程进入相应阻塞队列等待的条件是( )。
S>0
S=0
S<0
S不等于0
参考答案:
复制
纠错
相关题目
【单选题】 在操作系统中,对信号量S的P操作原语的定义中,使进程进入相应阻塞队列等待的条件是()。
①  S>0
②  S=0
③  S<0
④  S≠0
【单选题】 在操作系统中,对信号量S的P操作原语的定义中,使进程进入相应阻塞队列等待的条件是( )。
①  S>0
②  S=0
③  S0
【单选题】 如果信号量S的值是0 , 此时进程A执行P(S)操作,那么,进程A会( )。
①  继续运行
②  进入阻塞态,让出CPU
③  进入就绪态,让出CPU
④  继续运行,并唤醒S队列头上的等待进程
【单选题】 如果信号量S的值是0,此时进程A执行P(S)操作,那么,进程A会()。
①  继续运行
②  进入阻塞态,让出CPU
③  进入就绪态,让出CPU
④  继续运行,并唤醒S队列头上的等待进程
【单选题】 如果进程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的初值为8,在S上执行了10次P操作,6次V操作后,S的值为( )。
①  10
②  8
③  6
④  4
【单选题】 信号量S的初值为8,在S上执行了10次P操作,6次V操作后,S的值为()。
①  10
②  8
③  6
④  4
【单选题】 1. 对下面程序段描述正确的是int x=0,s=0; while (x!=0) s=s+x+1;printf(%d
①  运行程序段后输出0
②  运行程序段后输出1
③  程序段中的控制表达式是非法的
④  程序段循环无数次
随机题目
【判断题】 答题说明:句子没有语法错误请选择“正确”,有语法错误请选择“错误”Automobiles were too expensive that only rich people could afford them.
①  正确
②  错误
【判断题】 答题说明:句子没有语法错误请选择“正确”,有语法错误请选择“错误”Mary never married and she neven went to school, too.
①  正确
②  错误
【判断题】 答题说明:句子没有语法错误请选择“正确”,有语法错误请选择“错误”As man moves into the space age, the study of biological rhythms is of increasing important.
①  正确
②  错误
【多选题】 We should train them to_____________ reference books (参考书) .
①  take care of
②  take advantage of
③  make use of
④  make out of
【多选题】 He has ______________ to be an engineer.
①  departed
②  decided
③  made up
④  made up his mind
【多选题】 Each of these clocks governs a different function,_____________ , heart rate, blood pressure.
①  for short
②  for all
③  for example
④  for instance
【多选题】 She _____________ answering my questions.
①  took off
②  kept away from
③  fought for
④  avoided
【多选题】 They all believed that Europeans were_____________ other people.
①  larger than
②  easier than
③  better than
④  superior to
【单选题】 We must____________ the truth of the matter.
①  call out
②  pick out
③  go out
④  find out
【单选题】 My father bought me a bicycle____________ I could get to school quickly.
①  so as to
②  so on
③  so that
④  so much