0% found this document useful (0 votes)
13 views11 pages

Group 3

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

Group 3

presentation
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 11

Multithreadi

ng
by Group 3

PAGE 1
TOPIC

PAGE 2
What is Multithreading
 Multithreading pertains to  The use of multicore systems to
provision applications with multiple
the ability of an operating threads affects the application design
system (OS) to support and performance. The potential
multiple, concurrent paths performance benefits of a multicore
system may also be subjected to the
of execution within a single ability of a multithreaded application
process. to effectively exploit the parallel
resources available to the application.
Moreover, an object-oriented
multithreaded process is an efficient
means of implementing a server
application (Stallings, 2018).
PAGE 3
Characteristics of
Multithreading
 The memory overhead is small. It only requires an extra stack, register
space, and space for thread-local data
 The central processing unit (CPU) overhead is small since it uses application
programming interface (API) calls.
 The communication within the process and with other processes are faster.
 The crash resilience in implementing multithreading is low. Any bug can
crash the entire application
 The memory usage is motivated via a system allocator, which may incur
some CPU contention from multiple threads, and fragmentation before the
memory is reused.
Characteristics PAGE 4
Examples Benefits
Examples of Multithreaded
Applications

An application that A web browser that A word processor that


creates thumbnails of displays images or displays texts and
photos from a texts while retrieving responds to
collection of images. data from the keystrokes or mouse
network. clicks while
performing spelling
and grammar check.
Examples PAGE 5
Characteristics Benefits
Benefits of
Multithreaded
Programming

Benefits PAGE 6
Responsive
 incorporating the multithreading concept in an
interactive application allows a program to continue
running even if some part of it is blocked or
performing a lengthy operation. Thus, increasing the
responsiveness of the application to the user.

PAGE 7
Resource Sharing
 generally, threads share the memory and resources of
the process to which they belong. This allows
applications to have several different threads of
activities within the same address space.

PAGE 8
Economical
 allocating memory and resources for
process creation is inefficient, but thread
creation consumes less time and memory,
making it economical.

PAGE 9
Scalability
 the benefit of multithreading is greater when dealing
with multiprocessor architecture, where threads can
run in parallel on different processing cores.

PAGE 10
PAGE 11

You might also like