皮皮学,免费搜题
登录
logo - 刷刷题
搜题
【简答题】
在下列E类中【代码】输出结果是_____. import java.awt.*; import java.awt.event.*; public class E implements Runnable { StringBuffer buffer=new StringBuffer(); Thread t1,t2; E() { t1=new Thread(this); t2=new Thread(this); } public synchronized void addChar(char c) { if(Thread.currentThread()==t1) { while(buffer.length()==0) { try{ wait(); } catch(Exception e){} } buffer.append(c); } if(Thread.currentThread()==t2) { buffer.append(c); notifyAll(); } } public static void main(String s[]) { E hello=new E(); hello.t1.start(); hello.t2.start(); while(hello.t1.isAlive()||hello.t2.isAlive()){} System.out.println(hello.buffer); //【代码】 } public void run() { if(Thread.currentThread()==t1) addChar('A') ; if(Thread.currentThread()==t2) addChar('B') ; } }
手机使用
分享
复制链接
新浪微博
分享QQ
微信扫一扫
微信内点击右上角“…”即可分享
反馈
参考答案:
举一反三
【单选题】Which of the following statements is correct regarding an oil with a high viscosity index?
A.
A large change of viscosity occurs with a minor change in temperature
B.
No change in viscosity occurs with any change in temperature
C.
Very little change in viscosity occurs with a significant change in temperature
D.
The viscosity of the oil increases with an increase in temperature
【简答题】For the gas viscosity, viscosity of a fluid is a measure for the of fluids to flow.
【单选题】The absolute viscosity μ of a fluid is primarily a function of
A.
density
B.
temperature
C.
pressure
D.
velocity
E.
surface tension
【单选题】单边拉普拉斯变换F(s)=2s+1 的原函数等于
A.
2δ(t)+δ'(t)
B.
δ(t)+2δ'(t)
C.
δ(t)+δ'(t)
D.
2ε(t)+δ(t)
【单选题】For the gas viscosity, viscosity of a fluid is a measure for the ( ) of fluids to flow.
A.
external resistance
B.
internal resistance
C.
internal drive
D.
external drive
【单选题】The extraction is analogous liquid extraction with the exception that the pressures and supercritical fluid's diffusivity are high and the fluid's density and viscosity are low, enabling rapid extract...
A.
to
B.
with
【单选题】函数f(t)=tdcostε(t)/dt的单边拉普拉斯变换F(s)等于( ) .
A.
s2+s/(s2+1)
B.
s2/(s2+1)
C.
-2s/(s2+1)2
D.
2s/(s2+1)2
E.
s2-1/(s2+1)2
【判断题】公元前221年,秦始皇建立了我国历史上第一个封建制国家--秦王朝。答案:
A.
正确
B.
错误
【多选题】属于香港的国际知名酒店管理集团有哪些?( )
A.
香格里拉
B.
金陵
C.
半岛
D.
锦江
E.
文华东方
【单选题】单边拉普拉斯变换F(s)=(2s+1)e-2t/s2的原函数等于( )。
A.
tε(t)
B.
tε(t-2)
C.
(t-2)ε(t)
D.
(t-2)ε(t-2)
相关题目:
参考解析:
知识点:
题目纠错 0
发布
创建自己的小题库 - 刷刷题