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

Chapter 5 Multithreading

The document discusses the concepts of multiprocessing and multithreading, highlighting the differences between the two. It explains that multithreading is a lightweight process that enhances parallel processing, increases user response, utilizes CPU idle time, and allows for prioritization of tasks. The focus is on the advantages of using threads in computing.

Uploaded by

cinematicsnap299
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)
10 views31 pages

Chapter 5 Multithreading

The document discusses the concepts of multiprocessing and multithreading, highlighting the differences between the two. It explains that multithreading is a lightweight process that enhances parallel processing, increases user response, utilizes CPU idle time, and allows for prioritization of tasks. The focus is on the advantages of using threads in computing.

Uploaded by

cinematicsnap299
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