public class X implements Runnable { private int x; private int y; public static void main(String [] args) { X that = new X(); (new Thread( that )).start(); (new Thread( that )).start(); } public void run() { for (;;) { synchronized (this) { x++; y++; } System.out.println(Thread.currentThread().getName() + “x = “ + x + “, y = “ + y); } } } What is the result?()
A. Compilation fails.
B. The program prints pairs of values for x and y that might not always be the same on the same line (for example, “x = 2, y = 1”).
C. The program prints pairs of values for x and y that are always the same on the same line (for example, “x = 1, y = 1”). In addition, each value appears only once (for example, “x = 1, y = 1” followed by “x = 2, y = 2”). The thread name at the start of the line shows that both threads are executing concurrently.
D. The program prints pairs of values for x and y that are always the same on the same line (for example, “x = 1, y = 1”). In addition, each value appears only once (for example, “x = 1, y = 1” followed by “x = 2, y = 2”). The thread name at the start of the line shows that only a single thread is actually executing.
查看答案
在关井情况下,气体在井内运移时,可导致()。
A. 井内压力增加
B. 压裂地层
C. 钻井液密度增大
D. 钻井液池液面升高
有人认为试图通过收费来治堵,不但是一种典型的“懒政思维”,还会加剧社会不公。但请设想一下,大城市机动车保有量动辄以几百万辆计,而常住人口数量却有两三千万。如果以此推论,对生活在大城市中却没有车的老百姓而言,无论是公务车还是私家车的存在,本就影响了他们正常的出行。因此,从解决公共交通拥堵的立场出发,提高私家车的使用成本与限制公务车的出行都具有现实的合理性。 从上面这段文字可以看出,作者对收取拥堵费的态度是()。
A. 支持
B. 反对
C. 中立
D. 未表明
患者男,30岁,因“进行性右下肢跛行3年,右手运动性震颤7个月”来诊。既往有大量饮酒史(白酒250~500ml/次,4次/周)。神经系统查体:上下视复视,掌颌反射(+),双下肢肌力Ⅴ-级,双下肢腱反射活跃,双侧踝、髌阵挛,双侧查多克征(+)。腰椎穿刺脑脊液常规、生化检查正常,MBP(-),OB(-)。颅脑MRI:双侧脑室旁、胼胝体多处异常信号;颈椎MRI:未见异常。上述检查结果均为阴性,经大量B族维生素治疗,病情有所好转。该患者最可能的诊断是()
A. CADACIL
B. 宾斯旺格病(Binswangerdiseas
C. 胼胝体梗死
D. 慢性乙醇中毒性脑病
E. 脊髓亚急性联合变性
患者女,65岁,油漆工,因“反复发作尿频、尿急伴肉眼血尿2年,下腹部、左侧腰部胀痛,排尿不畅、排尿不尽感2个月”来诊。血尿多为终末血尿,常含有陈旧性血凝块。无发热。经抗感染、止血对症治疗,能暂时缓解,但易复发。无烟、酒嗜好。无血吸虫疫水接触史。查体:T36.5℃,P80次/min,R20次/min,BP110/70mmHg;腹部稍膨隆,腹软,无明显压痛,肠鸣音正常。发生双肾积水的处理措施为()(提示经有关检查,未见泌尿系结石,双侧输尿管肠管吻合口通畅。)
A. 控制尿路感染
B. 增加饮水量和尿量
C. 缩短自我导尿间隔时间
D. 储尿囊留置导尿管引流
E. 行双侧输尿管皮肤造口术
F. 储尿囊瘘口扩张术
G. 口服新斯的明制剂促进肠蠕动