题目内容

理解实现Runnable接口创建的多线程资源共享public class Test {public static void main(String args[]) {Target target =new Target();Thread t1 =new Thread(target);Thread t2 =new Thread(target);t1.start();try{ Thread.sleep(1000);}catch(Exception exp){}t2.start();}}class Target implements Runnable{int i = 10;public void run() {i--;System.out.println("i="+i);}}程序运行结果:

查看答案
更多问题

Sonia, we are ________ informed, loves her family very much.

A. reliable
B. reliably
C. rely

She is a novel ________ and reads as much as she can.

A. addict
B. addicted
C. addiction

He was the chief military ______ to the Philippine military forces when the United States entered World War Two in December, 1941.

A. advise
B. advisor
C. advisory

Customers who select the smart security package can add the following home _____________ packages.

A. auto
B. automatic
C. automation

答案查题题库