当前位置: 技术问答>java相关
选什么?为什么?
来源: 互联网 发布时间:2015-01-23
本文导语: -------------------------------------------------------------------------------- Which of the following statements is/are true? Choose all correct options. A) If two threads with different priorities are ready to run, the thread with the higher pr...
--------------------------------------------------------------------------------
Which of the following statements is/are true? Choose all correct options.
A) If two threads with different priorities are ready to run,
the thread with the higher priority will be run first.
B) If two threads with equal priorities are ready to run,
the thread that became ready first will be run first.
C) Neither of the above is true.
选什么?为什么?
Which of the following statements is/are true? Choose all correct options.
A) If two threads with different priorities are ready to run,
the thread with the higher priority will be run first.
B) If two threads with equal priorities are ready to run,
the thread that became ready first will be run first.
C) Neither of the above is true.
选什么?为什么?
|
Answer: C
|
c
most likely
从道理上来说 a 是对的。但具体实现时依赖于具体的 os 。二者优先级不是一一对应的。
b 的执行是随机的。
most likely
从道理上来说 a 是对的。但具体实现时依赖于具体的 os 。二者优先级不是一一对应的。
b 的执行是随机的。
|
c是对的,同意longaway
|
c is right ,应该是看所用的操作系统,不同的操作系统有不同的优先权算法
本站(WWW.)旨在分享和传播互联网科技相关的资讯和技术,将尽最大努力为读者提供更好的信息聚合和浏览方式。
本站(WWW.)站内文章除注明原创外,均为转载、整理或搜集自网络。欢迎任何形式的转载,转载请注明出处。
本站(WWW.)站内文章除注明原创外,均为转载、整理或搜集自网络。欢迎任何形式的转载,转载请注明出处。