将thread One配置为以较低优先级运行。
将thread Two配置为以较高优先级运行。
使用Wait Call back委托同步这两个线程。
调用thread One的Sleep方法。
调用thread One的SpinLock方法。
第1题:

A.Thread.Sleep(30000)
B.Thread.SpinWait(30000)
C.Thread.QueueUserWorkItem(30000)
D.Thread.SpinWait(30)
第2题:
下列程序的运行结果是______。 class A implements Runnable { int a; iht i = 2; A(int x) { a = x; } public void run() { while(i > 0) { System.out.println("线程" + a); i--; } } } public class Testl3 { public static void main(String[] args) { Thread a1 = new Thread(new A(1)); Thread a2 = new Thread(new A(2)); a1.start(); a2.start(); } }
A.线程1 线程1 线程2 线程2
B.线程1 线程2
C.线程1 线程2 线程1 线程2
D.线程1 线程1 线程1 线程1
第3题:
Thread类的方法中用于修改线程名字的方法是( )。
A.setName
B.reviseName
C.getName
D.checkAccess
第4题:
Thread类的方法中用于修改线程名字的方法是( )。
A.setName( )
B.reviseName( )
C.getName( )
D.checkAecess( )
第5题:
Thread类的哪个方法用来启动线程的运行?()
A. run()
B. start()
C. begin()
D. execute(Thread t)
第6题:
A.使用 ThreadPool.queueUserWorkItem。
B.使用 ThreadPool.UnsafeQueueUserWorkItem。
C.使用 Thread.Resume。
D.使用 Thread.Start
第7题:
下面()让线程休眠1分钟。
第8题:
为应用程序开发人员上班 Certkiller。.com,Certkiller.com 使用 Visual Studio.NET 2005 作为其应用程序开发平台。 您正在开发。NET 框架 2.0 Windows 服务应用程序,用于执行需要后台处理的几个短的任务。 你不需要有积极管理您的应用程序中的线程,但您是需要确保在执行任务的过程中将执行安全检查。 你应该做什么? ()
第9题:
您的应用程序运用了两个线程,名分别为thread One和thread Two thread Two..您需要修改代码防止从线程thread One的执行到thread Two的执行完成。您将如何去做?()
第10题:
将thread One配置为以较低优先级运行。
将thread Two配置为以较高优先级运行。
使用Wait Call back委托同步这两个线程。
调用thread One的Sleep方法。
调用thread One的SpinLock方法。
第11题:
new Thread() {public void run() { doStuff(); }};
new Thread() {public void start() { doStuff(); }};
new Thread() {public void start() { doStuff(); }}.run();
new Thread() {public void run() { doStuff(); }}.start();
new Thread(new Runnable() {public void run() { doStuff(); }}).start();
第12题:
第13题:
以下定义线程方法正确的是 ( )
A.Public Thread();
B.Public Thread(Runnable target)
C.Public Thread(ThreadGroup group,Runnable target);
D.以上都正确
第14题:
当使用SomeThread t=new SomeThread( )创建-个线程时,下列叙述中正确的是( )。
A.Some Thread类是包含run( )方法的任意Java类
B.Some Thread类-定要实现Runnable接口
C.Some Thread类是Thread类的子类
D.Some Thread类是Thread类的子类并且要实现Run-nable接口
第15题:
在多线程程序设计中,如果采用继承Thread类的方式创建线程,则需要重写Thread类的( )方法。
A.start
B.10cal
C.interrupt
D.run
第16题:
在多线程程序设计中,如果采用继承Thread类的方式创建线程,则需要重写Thread类的( )方法。
A.start
B.local
C.interrupt
D.run
第17题:
A、声明Thread类的子类,创建Thread子类的实例,让线程调用start()方法
B、声明Thread类的子类,在子类中重新定义run()方法,创建Thread子类的实例
C、创建Thread子类的实例,让线程调用start()方法
D、声明Thread类的子类,在子类中重新定义run()方法,创建Thread子类的实例,让线程调用start()方法
第18题:
Thread线程
第19题:
Which two code fragments will execute the method doStuff() in a separate thread?()
第20题:
您开发一个应用程序用于完成精确的运算。您需要保证该应用程序尽可能的完成同步复杂的计算。您将如何去做?()
第21题:
Thread.Sleep(30000)
Thread.SpinWait(30000)
Thread.QueueUserWorkItem(30000)
Thread.SpinWait(30)
第22题:
If only one thread is blocked in the wait method of an object, and another thread executes the modify on that same object, then the first thread immediately resumes execution.
If a thread is blocked in the wait method of an object, and another thread executes the notify method on the same object, it is still possible that the first thread might never resume execution.
If a thread is blocked in the wait method of an object, and another thread executes the notify method on the same object, then the first thread definitely resumes execution as a direct and sole consequence of the notify call.
If two threads are blocked in the wait method of one object, and another thread executes the notify method on the same object, then the first thread that executed the wait call first definitely resumes execution as a direct and sole consequence of the notify call.
第23题:
new Thread() { public void run() { doStuff(); } }
new Thread() { public void start() { doStuff(); } }
new Thread() { public void start() { doStuff(); } } .run();
new Thread() { public void run() { doStuff(); } } .start();
new Thread(new Runnable() { public void run() { doStuff(); } } ).run();
new Thread(new Runnable() { public void run() { doStuff(); } }).start();
第24题: