0% found this document useful (0 votes)
4 views1 page

Thread Notes 1

Multitasking threads are more efficient than multitasking processes due to their lightweight nature and shared address space. Inter-thread communication is inexpensive, while processes require costly inter-process communication and context switching. Java programs utilize process-based multitasking environments, but multithreaded multitasking is directly controlled by Java.

Uploaded by

jitprosen
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views1 page

Thread Notes 1

Multitasking threads are more efficient than multitasking processes due to their lightweight nature and shared address space. Inter-thread communication is inexpensive, while processes require costly inter-process communication and context switching. Java programs utilize process-based multitasking environments, but multithreaded multitasking is directly controlled by Java.

Uploaded by

jitprosen
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Thread

Multitasking threads require less overhead than multitasking processes. Processes are heavyweight
tasks that require their own separate address spaces. Inter-process communication is expensive and
limited. Context switching from one process to another is also costly. Threads, on the other hand, are
lightweight. They share the same address space and cooperatively share the same heavyweight process.
Inter-thread communication is inexpensive, and context switching from one thread to the next is low
cost. While Java programs make use of process-based multitasking environments, process-based
multitasking is not under the control of Java. However, multithreaded multitasking is.

You might also like