DirectFileTopicDownload-2
DirectFileTopicDownload-2
Multithreaded Programming
Multithreading Fundamentals
There are two distinct types of multitasking: process-based and thread-based.
Process-based multitasking is the feature that allows your computer to run two
or more programs concurrently.
For example, it is process-based multitasking that allows you to run the Java
compiler at the same time you are using a text editor or browsing the Internet. In
process-based multitasking, a program is the smallest unit of code that can be
dispatched by the scheduler.
As you probably know, most I/O devices, whether they be network ports,
disk drives, or the keyboard, are much slower than the CPU. Thus, a
program will often spend a majority of its execution time waiting to send
or receive information to or from a device.