SlideShare a Scribd company logo
1 of 15
M. DHARANI M.SC(CS),
NADAR SARASWATHI COLLEGE
OF ARTS AND SCIENCE,
THENI.
PROCESS SCHUDELING &
MEMORY MANAGEMENT
DEFINITION
Process management is an integral
part of any modern day operation
system. The OS must allocate
resources to processes, enable
processes to share and exchange
information, protect the resources
of each process from other
processes and enable synchronization
among processes.
To meet these requirements the
OS must maintain a data
structure for each process,
which describes the state and
resource ownership of that
process and which enables the
OS to exert control over each
process.
A process goes through a series of discrete
process states. Various events can cause a
process to change states:
Submit state
Hold state
Ready state
Running state
Wait state
Complete state
Process scheduling is one of the most important
functions of an operating system that supports
multiprogramming. This function is heavily
dependent on queues. There are three types of
queues that are used in process scheduling:
Job Queue
Ready Queue
Device Queue
Job Queue:
Contains all processes that have been
introduced into the system.
Ready Queue:
Contains processes that are waiting for CPU
time, and can be selected to run at any time.
Device Queue:
Contains processes waiting on a certain
device. Each device has its own queue for
processes that need I/O from it.
DIFFERENT ALGORITHMS USED FOR
HANDLING PROCESSES
Deterministic Scheduling:
An algorithm where in all characteristics of
a process are known in advance or before
execution.
Non-Deterministic Scheduling:
An algorithm where in characteristics of
processes are not known in advance.
TYPES OF QUEUE BEING USED
Single Queuing:
All process arrives at the same time with
their corresponding burst time.
Multiple Queuing:
Each process has its won arrival time in the
processor.
PROCESS SCHEDULING
Good policies to schedule processes:
1. Maximum Throughput
2. Minimize Response Time
3. Minimize Turnaround time
4. Minimize Waiting time
5. Maximize CPU Efficiency
6. Ensure fairness for All Jobs
PROCESS SCHEDULING ALGORITHM
Here, are six commonly used process scheduling
algorithms,
1. First come, First Served (FCFS)
2. Shortest job Next (SJN)
3. Priority Scheduling
4. Shortest Remaining Time (SRT)
5. Round Robin
6. Multi-Level Queues
DEAD LOCK
Dead lock can be said to occur when a process is
allocated some non-sharable resources but is
forced to wait for other non-sharable resources.
program proc A;
begin
open (File);
Do more stuff;
open (File2);
Do stuff;
End
PROGRAM Proc A:
BEGIN
Do stuff;
Open (file1);
Do more stuff;
Open(File 2);
Do stuff;
END
PROGRAM PROC B:
BEGIN
Do stuff;
Open (File 2);
Do more stuff;
Open (File 1);
Do stuff;
END
PROCESS A
FILE 1
FILE 2
SEVEN TYPES OF DEADLOCK
Deadlock on file requests
Deadlock in databases
Deadlock in dedicated device allocation
Deadlock in multiple device allocation
Deadlock in spooling
Deadlock in a network
Deadlock in disk sharing
THANK YOU !!!

More Related Content

What's hot

RTOS- Real Time Operating Systems
RTOS- Real Time Operating Systems RTOS- Real Time Operating Systems
RTOS- Real Time Operating Systems Bayar shahab
 
Wonderful world of Microarchitectural attacks
Wonderful world of Microarchitectural attacksWonderful world of Microarchitectural attacks
Wonderful world of Microarchitectural attacksToshihito Kikuchi
 
Process life cycle
Process life cycleProcess life cycle
Process life cycleGunjan Kumar
 
Process management in os
Process management in osProcess management in os
Process management in osSumant Diwakar
 
Computer System Scheduling
Computer System SchedulingComputer System Scheduling
Computer System SchedulingMubeen Ahmed
 
Schudling os presentaion
Schudling os presentaionSchudling os presentaion
Schudling os presentaioninayat khan
 
RTOS for Embedded System Design
RTOS for Embedded System DesignRTOS for Embedded System Design
RTOS for Embedded System Designanand hd
 

What's hot (10)

RTOS- Real Time Operating Systems
RTOS- Real Time Operating Systems RTOS- Real Time Operating Systems
RTOS- Real Time Operating Systems
 
Wonderful world of Microarchitectural attacks
Wonderful world of Microarchitectural attacksWonderful world of Microarchitectural attacks
Wonderful world of Microarchitectural attacks
 
Process life cycle
Process life cycleProcess life cycle
Process life cycle
 
Process scheduling
Process schedulingProcess scheduling
Process scheduling
 
Process concept
Process conceptProcess concept
Process concept
 
Process management in os
Process management in osProcess management in os
Process management in os
 
Computer System Scheduling
Computer System SchedulingComputer System Scheduling
Computer System Scheduling
 
Schudling os presentaion
Schudling os presentaionSchudling os presentaion
Schudling os presentaion
 
Chapter 3 - Processes
Chapter 3 - ProcessesChapter 3 - Processes
Chapter 3 - Processes
 
RTOS for Embedded System Design
RTOS for Embedded System DesignRTOS for Embedded System Design
RTOS for Embedded System Design
 

Similar to OS

52bf066dbfcc4d739fa99d255dba287a.pptx
52bf066dbfcc4d739fa99d255dba287a.pptx52bf066dbfcc4d739fa99d255dba287a.pptx
52bf066dbfcc4d739fa99d255dba287a.pptx11SnehlataGujar
 
LM10,11,12 - CPU SCHEDULING algorithms and its processes
LM10,11,12 - CPU SCHEDULING algorithms and its processesLM10,11,12 - CPU SCHEDULING algorithms and its processes
LM10,11,12 - CPU SCHEDULING algorithms and its processesmanideepakc
 
Os unit 3 , process management
Os unit 3 , process managementOs unit 3 , process management
Os unit 3 , process managementArnav Chowdhury
 
Process Management Operating Systems .pptx
Process Management        Operating Systems .pptxProcess Management        Operating Systems .pptx
Process Management Operating Systems .pptxSAIKRISHNADURVASULA2
 
Chapter 2 (Part 2)
Chapter 2 (Part 2) Chapter 2 (Part 2)
Chapter 2 (Part 2) rohassanie
 
Operating System
Operating SystemOperating System
Operating SystemGowriLatha1
 
Operating System-Concepts of Process
Operating System-Concepts of ProcessOperating System-Concepts of Process
Operating System-Concepts of ProcessShipra Swati
 
Operating-System-(1-3 group) Case study on windows Mac and linux among variou...
Operating-System-(1-3 group) Case study on windows Mac and linux among variou...Operating-System-(1-3 group) Case study on windows Mac and linux among variou...
Operating-System-(1-3 group) Case study on windows Mac and linux among variou...ssuser4a97d3
 
23565104 process-management(2)
23565104 process-management(2)23565104 process-management(2)
23565104 process-management(2)Anuj Malhotra
 
Introduction to OS.pptx
Introduction to OS.pptxIntroduction to OS.pptx
Introduction to OS.pptxHarsha Patel
 
Introduction to OS.pptx
Introduction to OS.pptxIntroduction to OS.pptx
Introduction to OS.pptxHarsha Patel
 

Similar to OS (20)

52bf066dbfcc4d739fa99d255dba287a.pptx
52bf066dbfcc4d739fa99d255dba287a.pptx52bf066dbfcc4d739fa99d255dba287a.pptx
52bf066dbfcc4d739fa99d255dba287a.pptx
 
LM10,11,12 - CPU SCHEDULING algorithms and its processes
LM10,11,12 - CPU SCHEDULING algorithms and its processesLM10,11,12 - CPU SCHEDULING algorithms and its processes
LM10,11,12 - CPU SCHEDULING algorithms and its processes
 
Os unit 3 , process management
Os unit 3 , process managementOs unit 3 , process management
Os unit 3 , process management
 
Operating System.pptx
Operating System.pptxOperating System.pptx
Operating System.pptx
 
OS-Process.pdf
OS-Process.pdfOS-Process.pdf
OS-Process.pdf
 
Process Management Operating Systems .pptx
Process Management        Operating Systems .pptxProcess Management        Operating Systems .pptx
Process Management Operating Systems .pptx
 
Chapter 2 (Part 2)
Chapter 2 (Part 2) Chapter 2 (Part 2)
Chapter 2 (Part 2)
 
Operating System
Operating SystemOperating System
Operating System
 
Process management1
Process management1Process management1
Process management1
 
Operating system
Operating systemOperating system
Operating system
 
Scheduling
SchedulingScheduling
Scheduling
 
UNIT - 3 PPT(Part- 1)_.pdf
UNIT - 3 PPT(Part- 1)_.pdfUNIT - 3 PPT(Part- 1)_.pdf
UNIT - 3 PPT(Part- 1)_.pdf
 
Operating System-Concepts of Process
Operating System-Concepts of ProcessOperating System-Concepts of Process
Operating System-Concepts of Process
 
Operating-System-(1-3 group) Case study on windows Mac and linux among variou...
Operating-System-(1-3 group) Case study on windows Mac and linux among variou...Operating-System-(1-3 group) Case study on windows Mac and linux among variou...
Operating-System-(1-3 group) Case study on windows Mac and linux among variou...
 
Chapter 3.pdf
Chapter 3.pdfChapter 3.pdf
Chapter 3.pdf
 
23565104 process-management(2)
23565104 process-management(2)23565104 process-management(2)
23565104 process-management(2)
 
RDos.pptx
RDos.pptxRDos.pptx
RDos.pptx
 
Introduction to OS.pptx
Introduction to OS.pptxIntroduction to OS.pptx
Introduction to OS.pptx
 
Introduction to OS.pptx
Introduction to OS.pptxIntroduction to OS.pptx
Introduction to OS.pptx
 
Operating system
Operating systemOperating system
Operating system
 

More from sowfi

Lavanya m.sc
Lavanya m.scLavanya m.sc
Lavanya m.scsowfi
 
Lavanya m.sc
Lavanya m.scLavanya m.sc
Lavanya m.scsowfi
 
Soundarya m.sc
Soundarya m.scSoundarya m.sc
Soundarya m.scsowfi
 
Software engineering 2
Software engineering 2Software engineering 2
Software engineering 2sowfi
 
Compiler design
Compiler designCompiler design
Compiler designsowfi
 
Big data analytics
Big data analyticsBig data analytics
Big data analyticssowfi
 
Web programming
Web programmingWeb programming
Web programmingsowfi
 
RDBMS
RDBMSRDBMS
RDBMSsowfi
 
RDBMS
RDBMSRDBMS
RDBMSsowfi
 
connected compounds
connected compoundsconnected compounds
connected compoundssowfi
 
GENETIC ALGORITHM
GENETIC ALGORITHMGENETIC ALGORITHM
GENETIC ALGORITHMsowfi
 
JDBE
JDBEJDBE
JDBEsowfi
 
AUTO & HETRO CORRELATOR
AUTO & HETRO CORRELATORAUTO & HETRO CORRELATOR
AUTO & HETRO CORRELATORsowfi
 
single source shorest path
single source shorest pathsingle source shorest path
single source shorest pathsowfi
 
servlet in java
servlet in javaservlet in java
servlet in javasowfi
 

More from sowfi (20)

Lavanya m.sc
Lavanya m.scLavanya m.sc
Lavanya m.sc
 
Lavanya m.sc
Lavanya m.scLavanya m.sc
Lavanya m.sc
 
Soundarya m.sc
Soundarya m.scSoundarya m.sc
Soundarya m.sc
 
Software engineering 2
Software engineering 2Software engineering 2
Software engineering 2
 
Compiler design
Compiler designCompiler design
Compiler design
 
Big data analytics
Big data analyticsBig data analytics
Big data analytics
 
Web programming
Web programmingWeb programming
Web programming
 
OS
OSOS
OS
 
RDBMS
RDBMSRDBMS
RDBMS
 
DM
DMDM
DM
 
CN
CNCN
CN
 
CN
CNCN
CN
 
Dm
DmDm
Dm
 
RDBMS
RDBMSRDBMS
RDBMS
 
connected compounds
connected compoundsconnected compounds
connected compounds
 
GENETIC ALGORITHM
GENETIC ALGORITHMGENETIC ALGORITHM
GENETIC ALGORITHM
 
JDBE
JDBEJDBE
JDBE
 
AUTO & HETRO CORRELATOR
AUTO & HETRO CORRELATORAUTO & HETRO CORRELATOR
AUTO & HETRO CORRELATOR
 
single source shorest path
single source shorest pathsingle source shorest path
single source shorest path
 
servlet in java
servlet in javaservlet in java
servlet in java
 

Recently uploaded

Disha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfDisha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfchloefrazer622
 
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfAyushMahapatra5
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfAdmir Softic
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeThiyagu K
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfsanyamsingh5019
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Krashi Coaching
 
General AI for Medical Educators April 2024
General AI for Medical Educators April 2024General AI for Medical Educators April 2024
General AI for Medical Educators April 2024Janet Corral
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3JemimahLaneBuaron
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Sapana Sha
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...christianmathematics
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfchloefrazer622
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAssociation for Project Management
 
9548086042 for call girls in Indira Nagar with room service
9548086042  for call girls in Indira Nagar  with room service9548086042  for call girls in Indira Nagar  with room service
9548086042 for call girls in Indira Nagar with room servicediscovermytutordmt
 
social pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajansocial pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajanpragatimahajan3
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdfQucHHunhnh
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfJayanti Pande
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdfSoniaTolstoy
 

Recently uploaded (20)

Disha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfDisha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdf
 
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdf
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
 
General AI for Medical Educators April 2024
General AI for Medical Educators April 2024General AI for Medical Educators April 2024
General AI for Medical Educators April 2024
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdf
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across Sectors
 
9548086042 for call girls in Indira Nagar with room service
9548086042  for call girls in Indira Nagar  with room service9548086042  for call girls in Indira Nagar  with room service
9548086042 for call girls in Indira Nagar with room service
 
social pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajansocial pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajan
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdf
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
 

OS

  • 1. M. DHARANI M.SC(CS), NADAR SARASWATHI COLLEGE OF ARTS AND SCIENCE, THENI. PROCESS SCHUDELING & MEMORY MANAGEMENT
  • 2. DEFINITION Process management is an integral part of any modern day operation system. The OS must allocate resources to processes, enable processes to share and exchange information, protect the resources of each process from other processes and enable synchronization among processes.
  • 3. To meet these requirements the OS must maintain a data structure for each process, which describes the state and resource ownership of that process and which enables the OS to exert control over each process.
  • 4. A process goes through a series of discrete process states. Various events can cause a process to change states: Submit state Hold state Ready state Running state Wait state Complete state
  • 5. Process scheduling is one of the most important functions of an operating system that supports multiprogramming. This function is heavily dependent on queues. There are three types of queues that are used in process scheduling: Job Queue Ready Queue Device Queue
  • 6. Job Queue: Contains all processes that have been introduced into the system. Ready Queue: Contains processes that are waiting for CPU time, and can be selected to run at any time. Device Queue: Contains processes waiting on a certain device. Each device has its own queue for processes that need I/O from it.
  • 7. DIFFERENT ALGORITHMS USED FOR HANDLING PROCESSES Deterministic Scheduling: An algorithm where in all characteristics of a process are known in advance or before execution. Non-Deterministic Scheduling: An algorithm where in characteristics of processes are not known in advance.
  • 8. TYPES OF QUEUE BEING USED Single Queuing: All process arrives at the same time with their corresponding burst time. Multiple Queuing: Each process has its won arrival time in the processor.
  • 9. PROCESS SCHEDULING Good policies to schedule processes: 1. Maximum Throughput 2. Minimize Response Time 3. Minimize Turnaround time 4. Minimize Waiting time 5. Maximize CPU Efficiency 6. Ensure fairness for All Jobs
  • 10. PROCESS SCHEDULING ALGORITHM Here, are six commonly used process scheduling algorithms, 1. First come, First Served (FCFS) 2. Shortest job Next (SJN) 3. Priority Scheduling 4. Shortest Remaining Time (SRT) 5. Round Robin 6. Multi-Level Queues
  • 11. DEAD LOCK Dead lock can be said to occur when a process is allocated some non-sharable resources but is forced to wait for other non-sharable resources. program proc A; begin open (File); Do more stuff; open (File2); Do stuff; End
  • 12. PROGRAM Proc A: BEGIN Do stuff; Open (file1); Do more stuff; Open(File 2); Do stuff; END PROGRAM PROC B: BEGIN Do stuff; Open (File 2); Do more stuff; Open (File 1); Do stuff; END
  • 14. SEVEN TYPES OF DEADLOCK Deadlock on file requests Deadlock in databases Deadlock in dedicated device allocation Deadlock in multiple device allocation Deadlock in spooling Deadlock in a network Deadlock in disk sharing