SlideShare a Scribd company logo
Enviar pesquisa
Carregar
Entrar
Cadastre-se
Ch3 processes
Denunciar
Ankit Dubey
Seguir
Student em Student of Government Polytechnic Mumbai
20 de Mar de 2021
•
0 gostou
•
32 visualizações
1
de
31
Ch3 processes
20 de Mar de 2021
•
0 gostou
•
32 visualizações
Baixar agora
Baixar para ler offline
Denunciar
Engenharia
operating systems
Ankit Dubey
Seguir
Student em Student of Government Polytechnic Mumbai
Recomendados
OperatingSystemChp3
Dwight Sabio
125 visualizações
•
54 slides
5 process synchronization
BaliThorat1
443 visualizações
•
20 slides
6 cpu scheduling
BaliThorat1
673 visualizações
•
26 slides
4 threads
BaliThorat1
325 visualizações
•
22 slides
2 os structure
BaliThorat1
317 visualizações
•
21 slides
3.Process Management
Senthil Kanth
872 visualizações
•
44 slides
Mais conteúdo relacionado
Mais procurados
Ch3
rupalidhir
447 visualizações
•
43 slides
Template 1 ch3
Von Adam Martinez
386 visualizações
•
49 slides
Chapter 14 Computer Architecture
GiulianoRanauro
194 visualizações
•
43 slides
Deadlocks
SyedTalhaBukhari2
513 visualizações
•
41 slides
Slides For Operating System Concepts By Silberschatz Galvin And Gagne
sarankumar4445
23.6K visualizações
•
6 slides
Ch03
Sandeep Mittal
669 visualizações
•
44 slides
Mais procurados
(19)
Ch3
rupalidhir
•
447 visualizações
Template 1 ch3
Von Adam Martinez
•
386 visualizações
Chapter 14 Computer Architecture
GiulianoRanauro
•
194 visualizações
Deadlocks
SyedTalhaBukhari2
•
513 visualizações
Slides For Operating System Concepts By Silberschatz Galvin And Gagne
sarankumar4445
•
23.6K visualizações
Ch03
Sandeep Mittal
•
669 visualizações
Operating systems chapter 5 silberschatz
GiulianoRanauro
•
1.4K visualizações
Unit II - 3 - Operating System - Process Synchronization
cscarcas
•
8.1K visualizações
Main memory-2 (ch8,os)
University of Technology - Iraq
•
983 visualizações
Ch2
Kailash Maheshwari
•
152 visualizações
Chapter 18 - Distributed Coordination
Wayne Jones Jnr
•
4K visualizações
OS_Ch4
Supriya Shrivastava
•
574 visualizações
Ch4 OS
C.U
•
669 visualizações
Process
Sachin MK
•
737 visualizações
Ch4 threads
Ankit Dubey
•
54 visualizações
cs8493 - operating systems unit 2
SIMONTHOMAS S
•
58 visualizações
OSCh17
Joe Christensen
•
566 visualizações
Ch1
nubinny
•
511 visualizações
Operating System : Ch18 distributed coordination
Syaiful Ahdan
•
237 visualizações
Similar a Ch3 processes
Ch3OperSys
Dwight Sabio
302 visualizações
•
54 slides
ch3_smu.ppt
JubayerPial
2 visualizações
•
33 slides
OS UNIT2.ppt
DHANABALSUBRAMANIAN
3 visualizações
•
58 slides
Chapter 3: Processes
Shafaan Khaliq
9.3K visualizações
•
63 slides
Unit II - 1 - Operating System Process
cscarcas
3K visualizações
•
63 slides
ch3-lect7.pptx
haroon451422
0 visão
•
60 slides
Similar a Ch3 processes
(20)
Ch3OperSys
Dwight Sabio
•
302 visualizações
ch3_smu.ppt
JubayerPial
•
2 visualizações
OS UNIT2.ppt
DHANABALSUBRAMANIAN
•
3 visualizações
Chapter 3: Processes
Shafaan Khaliq
•
9.3K visualizações
Unit II - 1 - Operating System Process
cscarcas
•
3K visualizações
ch3-lect7.pptx
haroon451422
•
0 visão
2.ch3 Process (1).ppt
salihazameer
•
10 visualizações
ch3 (1).ppt
AniketChavan493584
•
11 visualizações
ch3.ppt
FernandezPineda2
•
3 visualizações
ch3.ppt
csomab4u
•
1 visão
Processes
K Gowsic Gowsic
•
1 visão
process management.ppt
ShubhamGoel184057
•
46 visualizações
Operating System
Indhu Periys
•
122 visualizações
Lecture_Process.ppt
RahulKumarYadav87
•
4 visualizações
ch3.ppt
Sami Mughal
•
2 visualizações
ch3.ppt
SonaliAjankar
•
1 visão
Process_Concepts.pdf
IrsaAamir1
•
4 visualizações
Processes
RezaSony
•
18 visualizações
ch03.pptx
SHIKHAARYA26
•
0 visão
ch3_LU6_LU7_Lecture_1691052564579.pptx
AKumaraGuru
•
1 visão
Mais de Ankit Dubey
Unit 1 android and it's tools quiz {mad cwipedia}
Ankit Dubey
172 visualizações
•
7 slides
Scheduling
Ankit Dubey
41 visualizações
•
6 slides
Chapter 4
Ankit Dubey
62 visualizações
•
12 slides
Chapter 3
Ankit Dubey
62 visualizações
•
12 slides
Chapter 2
Ankit Dubey
60 visualizações
•
22 slides
Chapter 1
Ankit Dubey
72 visualizações
•
20 slides
Mais de Ankit Dubey
(20)
Unit 1 android and it's tools quiz {mad cwipedia}
Ankit Dubey
•
172 visualizações
Scheduling
Ankit Dubey
•
41 visualizações
Chapter 4
Ankit Dubey
•
62 visualizações
Chapter 3
Ankit Dubey
•
62 visualizações
Chapter 2
Ankit Dubey
•
60 visualizações
Chapter 1
Ankit Dubey
•
72 visualizações
Chapter 5
Ankit Dubey
•
43 visualizações
Ch5 cpu-scheduling
Ankit Dubey
•
49 visualizações
Ch2 system structure
Ankit Dubey
•
11 visualizações
Ch1 introduction-to-os
Ankit Dubey
•
8 visualizações
Android i
Ankit Dubey
•
23 visualizações
Mongodb mock test_ii
Ankit Dubey
•
465 visualizações
Android mock test_iii
Ankit Dubey
•
23 visualizações
Android mock test_ii
Ankit Dubey
•
17 visualizações
Ajp notes-chapter-06
Ankit Dubey
•
50 visualizações
Ajp notes-chapter-05
Ankit Dubey
•
37 visualizações
Ajp notes-chapter-04
Ankit Dubey
•
55 visualizações
Ajp notes-chapter-03
Ankit Dubey
•
26 visualizações
Ajp notes-chapter-02
Ankit Dubey
•
20 visualizações
Ajp notes-chapter-01
Ankit Dubey
•
55 visualizações
Último
Data Mining Lecture_10(b).pptx
Subrata Kumer Paul
8 visualizações
•
62 slides
Boeing Stearman Pilot's Handbook for Model N2S-4 Airplanes.pdf
TahirSadikovi
7 visualizações
•
36 slides
VFD DRIVES TROUBLESHOOTING.pptx
CONTROLS SYSTEMS
19 visualizações
•
14 slides
DBMS
KaranSingh274675
24 visualizações
•
18 slides
Sensor and transducers.ppt
karthik R
7 visualizações
•
36 slides
UNIT IV REFRIGERATION PRINCIPLES ...
karthi keyan
44 visualizações
•
44 slides
Último
(20)
Data Mining Lecture_10(b).pptx
Subrata Kumer Paul
•
8 visualizações
Boeing Stearman Pilot's Handbook for Model N2S-4 Airplanes.pdf
TahirSadikovi
•
7 visualizações
VFD DRIVES TROUBLESHOOTING.pptx
CONTROLS SYSTEMS
•
19 visualizações
DBMS
KaranSingh274675
•
24 visualizações
Sensor and transducers.ppt
karthik R
•
7 visualizações
UNIT IV REFRIGERATION PRINCIPLES ...
karthi keyan
•
44 visualizações
Master's Transcript Mohammad Mahdi Farshadian.pdf
Educational Group Mohammad Farshadian
•
39 visualizações
GOOGLE CLOUD STUDY JAM INFO : GDSC NIET
YashiGupta410690
•
87 visualizações
CODING AND MARK-WPS Office.pptx
sri jayaram institute of engineering and technology
•
16 visualizações
UNII II ELECTRICAL SYSTEMS IN BUILDINGS
karthi keyan
•
40 visualizações
UNIT 1 MACHINERIES
karthi keyan
•
33 visualizações
THEODOLITE.ppsx
MOHDTARIQFAROOQUI
•
70 visualizações
Chapter 2. Know Your Data.ppt
Subrata Kumer Paul
•
11 visualizações
Google Cloud Study Jam | GDSC NCU
Shivam254129
•
32 visualizações
1st Ansys Technology Day in Athens, Agenda
SIMTEC Software and Services
•
273 visualizações
NCL PREVIOUS YEAR QUESTIONS.pdf
mining novel
•
24 visualizações
Prefix and Suffix.pptx
TamsaPandya
•
8 visualizações
Problem solving using computers - Chapter 1
To Sum It Up
•
10 visualizações
Advanced PLC Programming Course EMERSON EDUARDO RODRIGUES
EMERSON EDUARDO RODRIGUES
•
18 visualizações
Ansys Technology Day in Budapest, Agenda
SIMTEC Software and Services
•
245 visualizações
Ch3 processes
1.
Silberschatz, Galvin and
Gagne ©2009 Operating System Concepts – 8th Edition, Chapter 3: Processes
2.
3.2 Silberschatz, Galvin
and Gagne ©2009 Operating System Concepts – 8th Edition Chapter 3: Processes Process Concept Process Scheduling Operations on Processes Interprocess Communication Threads Multithreading
3.
3.3 Silberschatz, Galvin
and Gagne ©2009 Operating System Concepts – 8th Edition Objectives To introduce the notion of a process -- a program in execution, which forms the basis of all computation To describe the various features of processes, including scheduling, creation and termination, and communication To describe communication in client-server systems
4.
3.4 Silberschatz, Galvin
and Gagne ©2009 Operating System Concepts – 8th Edition Process Concept An operating system executes a variety of programs: Batch system – jobs Time-shared systems – user programs or tasks Textbook uses the terms job and process almost interchangeably Process – a program in execution; process execution must progress in sequential fashion A process includes: program counter stack data section
5.
3.5 Silberschatz, Galvin
and Gagne ©2009 Operating System Concepts – 8th Edition Process in Memory
6.
3.6 Silberschatz, Galvin
and Gagne ©2009 Operating System Concepts – 8th Edition Process State As a process executes, it changes state new: The process is being created running: Instructions are being executed waiting: The process is waiting for some event to occur ready: The process is waiting to be assigned to a processor terminated: The process has finished execution
7.
3.7 Silberschatz, Galvin
and Gagne ©2009 Operating System Concepts – 8th Edition Diagram of Process State
8.
3.8 Silberschatz, Galvin
and Gagne ©2009 Operating System Concepts – 8th Edition Process Control Block (PCB) Information associated with each process Process state Program counter CPU registers CPU scheduling information Memory-management information Accounting information I/O status information
9.
3.9 Silberschatz, Galvin
and Gagne ©2009 Operating System Concepts – 8th Edition Process Control Block (PCB)
10.
3.10 Silberschatz, Galvin
and Gagne ©2009 Operating System Concepts – 8th Edition CPU Switch From Process to Process
11.
3.11 Silberschatz, Galvin
and Gagne ©2009 Operating System Concepts – 8th Edition Scheduling The objective of multiprogramming is to have some process running at all times, so as to maximize CPU utilization. The objective of time- sharing is to switch the CPU among processes so frequently that users can interact with each program while it is running. A uniprocessor system can have only one running process.If more processes exist, the rest must wait until the CPU is free and can be rescheduled.
12.
3.12 Silberschatz, Galvin
and Gagne ©2009 Operating System Concepts – 8th Edition Process Scheduling Queues Job queue – set of all processes in the system Ready queue – set of all processes residing in main memory, ready and waiting to execute Device queues – set of processes waiting for an I/O device Processes migrate among the various queues
13.
3.13 Silberschatz, Galvin
and Gagne ©2009 Operating System Concepts – 8th Edition Ready Queue And Various I/O Device Queues
14.
3.14 Silberschatz, Galvin
and Gagne ©2009 Operating System Concepts – 8th Edition Representation of Process Scheduling
15.
3.15 Silberschatz, Galvin
and Gagne ©2009 Operating System Concepts – 8th Edition 1)The process could issue an I/O request, and then be placed in an I/O queue. 2)The process could create a new subprocess and wait for its termination. 3)The process could be removed forcibly from the CPU, as a result of an interrupt, and be put back in the ready queue. Several events during execution
16.
3.16 Silberschatz, Galvin
and Gagne ©2009 Operating System Concepts – 8th Edition Schedulers Long-term scheduler (or job scheduler) – selects which processes should be brought into the ready queue Short-term scheduler (or CPU scheduler) – selects which process should be executed next and allocates CPU
17.
3.17 Silberschatz, Galvin
and Gagne ©2009 Operating System Concepts – 8th Edition Addition of Medium Term Scheduling
18.
3.18 Silberschatz, Galvin
and Gagne ©2009 Operating System Concepts – 8th Edition Schedulers (Cont) Short-term scheduler is invoked very frequently (milliseconds) (must be fast) Long-term scheduler is invoked very infrequently (seconds, minutes) (may be slow) The long-term scheduler controls the degree of multiprogramming Processes can be described as either: I/O-bound process – spends more time doing I/O than computations, many short CPU bursts CPU-bound process – spends more time doing computations; few very long CPU bursts
19.
3.19 Silberschatz, Galvin
and Gagne ©2009 Operating System Concepts – 8th Edition Context Switch When CPU switches to another process, the system must save the state of the old process and load the saved state for the new process via a context switch Context of a process represented in the PCB Context-switch time is overhead; the system does no useful work while switching Time dependent on hardware support
20.
3.20 Silberschatz, Galvin
and Gagne ©2009 Operating System Concepts – 8th Edition Process Creation Parent process create children processes, which, in turn create other processes, forming a tree of processes Generally, process identified and managed via a process identifier (pid) Resource sharing Parent and children share all resources Children share subset of parent’s resources Parent and child share no resources Execution Parent and children execute concurrently Parent waits until children terminate
21.
3.21 Silberschatz, Galvin
and Gagne ©2009 Operating System Concepts – 8th Edition Process Creation (Cont) Address space Child duplicate of parent Child has a program loaded into it UNIX examples fork system call creates new process exec system call used after a fork to replace the process’ memory space with a new program
22.
3.22 Silberschatz, Galvin
and Gagne ©2009 Operating System Concepts – 8th Edition
23.
3.23 Silberschatz, Galvin
and Gagne ©2009 Operating System Concepts – 8th Edition Process Termination Process executes last statement and asks the operating system to delete it (exit) Output data from child to parent (via wait) Process’ resources are deallocated by operating system Parent may terminate execution of children processes (abort) Child has exceeded allocated resources Task assigned to child is no longer required If parent is exiting Some operating system do not allow child to continue if its parent terminates – All children terminated - cascading termination
24.
3.25 Silberschatz, Galvin
and Gagne ©2009 Operating System Concepts – 8th Edition Interprocess Communication Processes within a system may be independent or cooperating Cooperating process can affect or be affected by other processes, including sharing data Reasons for cooperating processes: Information sharing Computation speedup Modularity Convenience Cooperating processes need interprocess communication (IPC) Two models of IPC Shared memory Message passing
25.
3.26 Silberschatz, Galvin
and Gagne ©2009 Operating System Concepts – 8th Edition Communications Models
26.
3.27 Silberschatz, Galvin
and Gagne ©2009 Operating System Concepts – 8th Edition Interprocess Communication – Message Passing Mechanism for processes to communicate and to synchronize their actions Message system – processes communicate with each other without resorting to shared variables IPC facility provides two operations: send(message) – message size fixed or variable receive(message) If P and Q wish to communicate, they need to: establish a communication link between them exchange messages via send/receive Implementation of communication link physical (e.g., shared memory, hardware bus) logical (e.g., logical properties)
27.
3.28 Silberschatz, Galvin
and Gagne ©2009 Operating System Concepts – 8th Edition Direct Communication Processes must name each other explicitly: send (P, message) – send a message to process P receive(Q, message) – receive a message from process Q Properties of communication link Links are established automatically A link is associated with exactly one pair of communicating processes Between each pair there exists exactly one link The link may be unidirectional, but is usually bi-directional
28.
3.29 Silberschatz, Galvin
and Gagne ©2009 Operating System Concepts – 8th Edition Indirect Communication Messages are directed and received from mailboxes (also referred to as ports) Each mailbox has a unique id Processes can communicate only if they share a mailbox send(A,message) receive(A,message) Properties of communication link Link established only if processes share a common mailbox A link may be associated with many processes Each pair of processes may share several communication links Link may be unidirectional or bi-directional
29.
3.30 Silberschatz, Galvin
and Gagne ©2009 Operating System Concepts – 8th Edition Synchronization Message passing may be either blocking or non-blocking Blocking is considered synchronous Blocking send has the sender block until the message is received Blocking receive has the receiver block until a message is available Non-blocking is considered asynchronous Non-blocking send has the sender send the message and continue Non-blocking receive has the receiver receive a valid message or null
30.
3.31 Silberschatz, Galvin
and Gagne ©2009 Operating System Concepts – 8th Edition Buffering Queue of messages attached to the link; implemented in one of three ways 1. Zero capacity – 0 messages Sender must wait for receiver (rendezvous) 2. Bounded capacity – finite length of n messages Sender must wait if link full 3. Unbounded capacity – infinite length Sender never waits
31.
Silberschatz, Galvin and
Gagne ©2009 Operating System Concepts – 8th Edition, End of Chapter 3