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. 脊髓亚急性联合变性