0% found this document useful (0 votes)
17 views31 pages

Understanding Java Multithreading Concepts

The document discusses the concepts of multiprocessing and multithreading, highlighting that multiprocessing is a heavyweight process requiring more time to switch between processes, while multithreading is lightweight and allows for faster communication. It emphasizes the need for threads to enhance parallel processing, improve user response, utilize CPU idle time, and prioritize tasks. Overall, it presents multithreading as a more efficient approach to multitasking in computing.

Uploaded by

wudugetye
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)
17 views31 pages

Understanding Java Multithreading Concepts

The document discusses the concepts of multiprocessing and multithreading, highlighting that multiprocessing is a heavyweight process requiring more time to switch between processes, while multithreading is lightweight and allows for faster communication. It emphasizes the need for threads to enhance parallel processing, improve user response, utilize CPU idle time, and prioritize tasks. Overall, it presents multithreading as a more efficient approach to multitasking in computing.

Uploaded by

wudugetye
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

JAVA

University of Gondar
College of Informatics

Department of Computer Science

Aleka T.
MULTITHREADING CONCEPT

Aleka T.
• Multiprocessing : Process-based multitasking is
a heavyweight process and occupies different
address spaces in memory. Hence, while
switching from one process to another, it will
require some time be it very small, causing a lag
because of switching. This happens as registers
will be loaded in memory maps and the list will
be updated.
• Multithreading : Thread-based multitasking is a
lightweight process and occupies the same
address space. Hence, while switching cost of
communication will be very less.
Why do we need threads?
• To enhance parallel processing
• To increase response to the user
• To utilize the idle time of the CPU
• Prioritize your work depending on priority

You might also like