皮皮学,免费搜题
登录
搜题
【单选题】
Given: 1. public class X i m pl e m ents Runnable { 2. private int x; 3. private int y; 4. 5. public static void m ain(String [] args) { 6. X that = new X(); 7. (new Thread( t h at )). s tart(); 8. (new Thread( t h at )). s tart(); 9. } 10. 11. public void run() { 12. for (;;) { 13. synchronized (this) { 14. x++; 15. y++; 16. } 17. Syste m .out.println(Thread.current T hread().get N a m e() + "x = " + x + ", y = " + y); 18. } 19 } 20 } W hat is the result?
A.
Co m pilation f ails.
B.
The program prints pairs of values for x and y that m i ght not always be the sa m e on the sa m e line (for exa m ple, "x = 2, y = 1").
C.
The program prints pairs of values for x and y that are always the sa m e on the sa m e line (for example, "x = 1, y = 1").In addition, each val u e appears only once ( f or e x a m ple, "x = 1, y = 1" followed by "x = 2, y = 2").The thread n a m e at the start of the li n e shows that both threa d s are e x ecuting concurrently.
D.
The program prints pairs of values for x and y that are always the sa m e on the sa m e line (for example, "x = 1, y = 1").In addition, each val u e appears only once ( f or e x a m ple, "x = 1, y = 1" followed by "x = 2, y = 2").The thread n a m e at the start of the li n e s hows that only a single thread is actually executing.
拍照语音搜题,微信中搜索"皮皮学"使用
参考答案:
参考解析:
知识点:
.
..
皮皮学刷刷变学霸
举一反三
【单选题】按照生产能力指数法(n=0.8, Cf=1.1),如将设计中的化工生产系统的生产能力提高到三倍,投资额将增加( )。
A.
118.9%
B.
158.3%
C.
164.9%
D.
191.5%
【多选题】在Excel中,功能函数包括()。
A.
财务
B.
日期与时间
C.
数学与三角函数
D.
统计
【简答题】已知一个文件中存放若干工人档案记录,其数据结构如下:
【单选题】按照生产能力指数法(n=0.8,CF=1.1),如将设计中的化工生产系统的生产能力提高到3倍,投资额将增加( )。
A.
118.9%
B.
158.3%
C.
264.9%
D.
191.5%
【单选题】在Excel 2016中,如果要在工作表sheet1的某一个单元格中引用工作表sheet2的A1的值,以下哪个是正确的引用方法( )。
A.
sheet2#A1
B.
sheet2*$A$1
C.
sheet2!A1
D.
sheet2.A1
【多选题】图3是AE活性酯法合成头孢噻肟的工艺路线,其中每生成1分子的头孢噻肟,同时生成1分子的三苯基氧膦(TPPO)和2分子的2-巯基苯并噻唑(M)。图4是AE活性酯法合成头孢噻肟的工艺过程,请问下述关于TPPO与M回收的描述正确的有( )。 【图片】 【图片】
A.
TPPO 和 M 留在头孢噻肟析出的母液中,该母液是二氯甲烷、甲醇和水的混合物。
B.
将二者回收的首要任务是将二者分离。
C.
TPPO 的亲水性比亲油性更强。在分离过程中,可以利用TPPO的亲水性。
D.
在分离过程中,2-巯基苯并噻唑(M)上巯基的酸性可以被利用。
E.
TPPO 和M都属于无用的中间体,回收了也没啥用途。
【单选题】安禄山造反的主要原因是:()
A.
杨国忠激反的
B.
安禄山对杨贵妃无礼导致的
C.
唐玄宗疏远安禄山导致的
D.
以上说法都正确
【简答题】圆锥被平面截切后产生的截交线形状有 、 两相交直线 、 、 、 双曲线 五种。
【多选题】在EXCEL中能够进行查找与引用的函数有()。
A.
LOOKUP
B.
VLOOKUP
C.
HLOOKUP
D.
MATCH
【单选题】微软公司集成8个办公组件形成office办公系统,整体定价进行销售,这表明微软公司采用了()
A.
限制定价策略
B.
掴绑定价策略
C.
差别定价策略
D.
系列定价策略
相关题目: