SlideShare a Scribd company logo
3
Most read
10
Most read
11
Most read
ADVANCE
OPERATING SYSTEM
Darakhshan Nayab
MSc(IT)
MS(Computer Science)
Dept of Computer Science
Content
■ Multi-threading
■ Example
■ Architecture
■ RPC
■ Advantages
■ Multi-threading models
Multi-threading
■ Multithreading allows operating system to execute different threads
simultaneously.
■ It perform multiple tasks at the same time.
Example
■ Many software packages that run on modern desktop PCs
are multithreaded.
A word processor may have:
■ A thread for displaying graphics, another thread for
responding to keystrokes from the user, and a third thread
for performing spelling and grammar checking in the
background.
■ A Web Browser can use one thread to display images and a
second thread to retrieve data from the network.
Architecture
■ A web server receives requests for web pages, images and sounds
etc. Many client may be accessing the server at the same time. The
web server can service only one client at a time if it runs as a single-
threaded process. The clients may have to wait for the service of the
requests.
RPC
RPC is a protocol in which one program can be used to send
the service to the program located in another server in a
network without having the network detail.
Advantages
■ Responsiveness
■ Resource sharing
■ Economy
■ Scalability
■ Context Switching is smooth
Multi-Threading Models
■ The user threads must be mapped to kernel threads, by
one of the following strategies:
■ Many to One Model
■ One to One Model
■ Many to Many Model
One to One Model
■ One to One model creates a separate kernel thread to handle each
and every user thread.
■ Most implementations of this model place a limit on how many
threads can be created.
■ This model provides more concurrency, Efficient performance.
Example
■ Linux
■ Window XP
Many to One
■ In the many to one model, many user-level threads are all
mapped onto a single kernel thread.
■ Thread management done in user space.
■ If a thread makes a blocking calls entire process is blocked.
■ Only one thread can access the kernel at a time, So it cannot run
in parallel on multiprocessor.
Many to Many
■ Multiplexes any number of user threads onto an equal or smaller
number of kernel threads, combining the best features of the one-to-
one and many-to-one models.
■ Users can create any number of threads.
■ Blocking the kernel system calls does not block the entire process.
■ Processes can be split across multiple processors.
Multi threading models

More Related Content

PPTX
Semophores and it's types
Nishant Joshi
 
PDF
4 threads
Dr. Loganathan R
 
PPTX
Concurrency control
Soumyajit Dutta
 
PPTX
Demand paging
Trinity Dwarka
 
PPTX
Timestamp protocols
Prashant Saini
 
PPT
Chapter 9 - Virtual Memory
Wayne Jones Jnr
 
PPTX
Log based and Recovery with concurrent transaction
nikunjandy
 
PPT
Os Threads
Salman Memon
 
Semophores and it's types
Nishant Joshi
 
4 threads
Dr. Loganathan R
 
Concurrency control
Soumyajit Dutta
 
Demand paging
Trinity Dwarka
 
Timestamp protocols
Prashant Saini
 
Chapter 9 - Virtual Memory
Wayne Jones Jnr
 
Log based and Recovery with concurrent transaction
nikunjandy
 
Os Threads
Salman Memon
 

What's hot (20)

PPTX
Distributed DBMS - Unit 8 - Distributed Transaction Management & Concurrency ...
Gyanmanjari Institute Of Technology
 
PPTX
Adbms 43 multiversion concurrency control
Vaibhav Khanna
 
PPT
Clock synchronization in distributed system
Sunita Sahu
 
PPT
16. Concurrency Control in DBMS
koolkampus
 
PPT
Query Decomposition and data localization
Hafiz faiz
 
PPTX
Process synchronization in Operating Systems
Ritu Ranjan Shrivastwa
 
DOCX
BANKER'S ALGORITHM
Muhammad Baqar Kazmi
 
PPTX
Design Goals of Distributed System
Ashish KC
 
PPTX
File access method
GayathriS578276
 
PPT
Memory Management in OS
vampugani
 
PPTX
RAID LEVELS
Uzair Khan
 
PPTX
Operating system 24 mutex locks and semaphores
Vaibhav Khanna
 
PPTX
Inter Process Communication
Adeel Rasheed
 
PDF
7 Deadlocks
Dr. Loganathan R
 
PDF
Processes and Processors in Distributed Systems
Dr Sandeep Kumar Poonia
 
PPTX
Deadlock ppt
Sweetestangel Kochar
 
PPTX
Lock based protocols
ChethanMp7
 
DOCX
Parallel computing persentation
VIKAS SINGH BHADOURIA
 
PPTX
deadlock handling
Suraj Kumar
 
PPTX
process and thread.pptx
HamzaxTv
 
Distributed DBMS - Unit 8 - Distributed Transaction Management & Concurrency ...
Gyanmanjari Institute Of Technology
 
Adbms 43 multiversion concurrency control
Vaibhav Khanna
 
Clock synchronization in distributed system
Sunita Sahu
 
16. Concurrency Control in DBMS
koolkampus
 
Query Decomposition and data localization
Hafiz faiz
 
Process synchronization in Operating Systems
Ritu Ranjan Shrivastwa
 
BANKER'S ALGORITHM
Muhammad Baqar Kazmi
 
Design Goals of Distributed System
Ashish KC
 
File access method
GayathriS578276
 
Memory Management in OS
vampugani
 
RAID LEVELS
Uzair Khan
 
Operating system 24 mutex locks and semaphores
Vaibhav Khanna
 
Inter Process Communication
Adeel Rasheed
 
7 Deadlocks
Dr. Loganathan R
 
Processes and Processors in Distributed Systems
Dr Sandeep Kumar Poonia
 
Deadlock ppt
Sweetestangel Kochar
 
Lock based protocols
ChethanMp7
 
Parallel computing persentation
VIKAS SINGH BHADOURIA
 
deadlock handling
Suraj Kumar
 
process and thread.pptx
HamzaxTv
 
Ad

Similar to Multi threading models (20)

PPTX
Operating system: threads(mulithreading,benefits of threads, types of thread)
sonuu__
 
PDF
Basic Threads in Advanced operating system
sidrah29
 
PPTX
W-9.pptx
alianwarr
 
PPTX
Engineeering Operating systemsOS UNIT 3 Threads.pptx
ppkmurthy2006
 
PDF
Multithreading
A. S. M. Shafi
 
PPTX
OS Module-2.pptx
bleh23
 
PPT
Module2 MultiThreads.ppt
shreesha16
 
PPTX
Multi threaded programming
AnyapuPranav
 
PDF
1. What important part of the process switch operation is not shown .pdf
fathimaoptical
 
PPTX
Epc 3.ppt
CasmoletJ
 
PPTX
Networking threads
Nilesh Pawar
 
PDF
Threads lecture slides for operating systems
amirtarek401
 
PPT
Treads
nayanashetty7
 
PDF
Multithreaded Programming in oprating system
YOGENDRAMS
 
PDF
Multithreading
Dr. A. B. Shinde
 
PDF
Threads
Amir Payberah
 
PPTX
Thread
dharini waghela
 
PPT
15 threads
myrajendra
 
PDF
threads (1).pdfmjlkjfwjgliwiufuaiusyroayr
abhinandpk2405
 
Operating system: threads(mulithreading,benefits of threads, types of thread)
sonuu__
 
Basic Threads in Advanced operating system
sidrah29
 
W-9.pptx
alianwarr
 
Engineeering Operating systemsOS UNIT 3 Threads.pptx
ppkmurthy2006
 
Multithreading
A. S. M. Shafi
 
OS Module-2.pptx
bleh23
 
Module2 MultiThreads.ppt
shreesha16
 
Multi threaded programming
AnyapuPranav
 
1. What important part of the process switch operation is not shown .pdf
fathimaoptical
 
Epc 3.ppt
CasmoletJ
 
Networking threads
Nilesh Pawar
 
Threads lecture slides for operating systems
amirtarek401
 
Multithreaded Programming in oprating system
YOGENDRAMS
 
Multithreading
Dr. A. B. Shinde
 
Threads
Amir Payberah
 
15 threads
myrajendra
 
threads (1).pdfmjlkjfwjgliwiufuaiusyroayr
abhinandpk2405
 
Ad

Recently uploaded (20)

PPTX
Coupa-Overview _Assumptions presentation
annapureddyn
 
PPTX
Comunidade Salesforce São Paulo - Desmistificando o Omnistudio (Vlocity)
Francisco Vieira Júnior
 
PPTX
The-Ethical-Hackers-Imperative-Safeguarding-the-Digital-Frontier.pptx
sujalchauhan1305
 
PPTX
Applied-Statistics-Mastering-Data-Driven-Decisions.pptx
parmaryashparmaryash
 
PDF
BLW VOCATIONAL TRAINING SUMMER INTERNSHIP REPORT
codernjn73
 
PDF
Data_Analytics_vs_Data_Science_vs_BI_by_CA_Suvidha_Chaplot.pdf
CA Suvidha Chaplot
 
PDF
Event Presentation Google Cloud Next Extended 2025
minhtrietgect
 
PPT
Coupa-Kickoff-Meeting-Template presentai
annapureddyn
 
PDF
AI Unleashed - Shaping the Future -Starting Today - AIOUG Yatra 2025 - For Co...
Sandesh Rao
 
PDF
Accelerating Oracle Database 23ai Troubleshooting with Oracle AHF Fleet Insig...
Sandesh Rao
 
PPTX
cloud computing vai.pptx for the project
vaibhavdobariyal79
 
PDF
Orbitly Pitch Deck|A Mission-Driven Platform for Side Project Collaboration (...
zz41354899
 
PPTX
IoT Sensor Integration 2025 Powering Smart Tech and Industrial Automation.pptx
Rejig Digital
 
PPTX
ChatGPT's Deck on The Enduring Legacy of Fax Machines
Greg Swan
 
PDF
Research-Fundamentals-and-Topic-Development.pdf
ayesha butalia
 
PDF
How-Cloud-Computing-Impacts-Businesses-in-2025-and-Beyond.pdf
Artjoker Software Development Company
 
PDF
Cloud-Migration-Best-Practices-A-Practical-Guide-to-AWS-Azure-and-Google-Clou...
Artjoker Software Development Company
 
PDF
SparkLabs Primer on Artificial Intelligence 2025
SparkLabs Group
 
PDF
Tea4chat - another LLM Project by Kerem Atam
a0m0rajab1
 
PDF
MASTERDECK GRAPHSUMMIT SYDNEY (Public).pdf
Neo4j
 
Coupa-Overview _Assumptions presentation
annapureddyn
 
Comunidade Salesforce São Paulo - Desmistificando o Omnistudio (Vlocity)
Francisco Vieira Júnior
 
The-Ethical-Hackers-Imperative-Safeguarding-the-Digital-Frontier.pptx
sujalchauhan1305
 
Applied-Statistics-Mastering-Data-Driven-Decisions.pptx
parmaryashparmaryash
 
BLW VOCATIONAL TRAINING SUMMER INTERNSHIP REPORT
codernjn73
 
Data_Analytics_vs_Data_Science_vs_BI_by_CA_Suvidha_Chaplot.pdf
CA Suvidha Chaplot
 
Event Presentation Google Cloud Next Extended 2025
minhtrietgect
 
Coupa-Kickoff-Meeting-Template presentai
annapureddyn
 
AI Unleashed - Shaping the Future -Starting Today - AIOUG Yatra 2025 - For Co...
Sandesh Rao
 
Accelerating Oracle Database 23ai Troubleshooting with Oracle AHF Fleet Insig...
Sandesh Rao
 
cloud computing vai.pptx for the project
vaibhavdobariyal79
 
Orbitly Pitch Deck|A Mission-Driven Platform for Side Project Collaboration (...
zz41354899
 
IoT Sensor Integration 2025 Powering Smart Tech and Industrial Automation.pptx
Rejig Digital
 
ChatGPT's Deck on The Enduring Legacy of Fax Machines
Greg Swan
 
Research-Fundamentals-and-Topic-Development.pdf
ayesha butalia
 
How-Cloud-Computing-Impacts-Businesses-in-2025-and-Beyond.pdf
Artjoker Software Development Company
 
Cloud-Migration-Best-Practices-A-Practical-Guide-to-AWS-Azure-and-Google-Clou...
Artjoker Software Development Company
 
SparkLabs Primer on Artificial Intelligence 2025
SparkLabs Group
 
Tea4chat - another LLM Project by Kerem Atam
a0m0rajab1
 
MASTERDECK GRAPHSUMMIT SYDNEY (Public).pdf
Neo4j
 

Multi threading models

  • 2. Content ■ Multi-threading ■ Example ■ Architecture ■ RPC ■ Advantages ■ Multi-threading models
  • 3. Multi-threading ■ Multithreading allows operating system to execute different threads simultaneously. ■ It perform multiple tasks at the same time.
  • 4. Example ■ Many software packages that run on modern desktop PCs are multithreaded. A word processor may have: ■ A thread for displaying graphics, another thread for responding to keystrokes from the user, and a third thread for performing spelling and grammar checking in the background. ■ A Web Browser can use one thread to display images and a second thread to retrieve data from the network.
  • 5. Architecture ■ A web server receives requests for web pages, images and sounds etc. Many client may be accessing the server at the same time. The web server can service only one client at a time if it runs as a single- threaded process. The clients may have to wait for the service of the requests.
  • 6. RPC RPC is a protocol in which one program can be used to send the service to the program located in another server in a network without having the network detail.
  • 7. Advantages ■ Responsiveness ■ Resource sharing ■ Economy ■ Scalability ■ Context Switching is smooth
  • 8. Multi-Threading Models ■ The user threads must be mapped to kernel threads, by one of the following strategies: ■ Many to One Model ■ One to One Model ■ Many to Many Model
  • 9. One to One Model ■ One to One model creates a separate kernel thread to handle each and every user thread. ■ Most implementations of this model place a limit on how many threads can be created. ■ This model provides more concurrency, Efficient performance. Example ■ Linux ■ Window XP
  • 10. Many to One ■ In the many to one model, many user-level threads are all mapped onto a single kernel thread. ■ Thread management done in user space. ■ If a thread makes a blocking calls entire process is blocked. ■ Only one thread can access the kernel at a time, So it cannot run in parallel on multiprocessor.
  • 11. Many to Many ■ Multiplexes any number of user threads onto an equal or smaller number of kernel threads, combining the best features of the one-to- one and many-to-one models. ■ Users can create any number of threads. ■ Blocking the kernel system calls does not block the entire process. ■ Processes can be split across multiple processors.