Group 3
Group 3
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
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