Thread Background

One of the most striking features of Java is the ease with which a programmer can use multiple threads of execution. In C or C++, implementing multiple threads may involve using a proprietary and platform-specific toolkit, including concepts that have been tacked on to the original language. Java, by contrast, was designed from the start to accommodate multiple threads.

Multithreading Versus Multitasking

In modern operating systems, such as Windows XP, each program appears to run independently of all other programs. Although the CPU can do only one operation at a time, the operating system accomplishes multitasking by switching its attention so rapidly between the different applications that the applications appear to be running ...

Get Java 2™ Programmer Exam Cram™ 2 (Exam CX-310-035) 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.