Apply Your Knowledge

Review Questions

1:How does multithreading take place on a computer with a single CPU?
2:What are the two basic ways in which classes that can be run as threads can be defined?
3:What method must all threads implement?
4:What method is invoked to cause an object to begin executing as a separate thread?
5:What invokes a thread's run() method?
6:What are the high-level thread states?
7:When a thread is created and started, what is its initial state?
8:What state is a thread in when it is executing?
9:When a thread blocks on I/O, what state does it enter?
10:What state does a thread enter when it terminates its processing?
11:How can a dead thread be restarted?
12:What are three ways in which a thread can enter the waiting state?
13:What ...

Get Sun Certification Training Guide (310-025, 310-027): Java™ 2 Programmer and Developer Exams now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.