Chapter 13. Multithreading


13.1 Introduction to multithreading

13.2 Setting up threads

13.3 Synchronization among threads

13.4 Inside the Display class

13.5Case Study 9: Walkman Hire

Introduction to multithreading

In operating system terms, a program that is running is known as a process. An operating system can be running several processes for different users at any one time. Not all of these need be active: they could be awaiting their share of processor time, or they could be waiting for some information, such as user input.

Now within a single process, the same division into separately runnable subprocesses can be made. In Java these are known as ...

Get Java Gently, Third Edition now with the O’Reilly learning platform.

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.