SlideShare una empresa de Scribd logo
1 de 19
PROCESS MANAGEMENT
By :
Birju Tank((141060753017)
IEEE Seminar on Operating System Programming
At: GTU PG SCHOOL,GANDHINAGAR
IEEE Papers Overview
 Paper:1 Process Management in Distribute
System [1] represents the how one process
executing step by step in Program and Distributed
Systems at initial stage.
 Paper:2 Developing Complex Systems -
Incorporating Human Variability into the Process
[2] represents the process with the comparison of
human variability.
 Paper:3 Dynamic Process Migration Framework
[3] represents the process migration from one
machine to other machine , basically work on the
Distributed Systems.
Contents
 IEEE Papers Overview
 What is Process?-Introduction
 Processes and Process Management
 Process Life Cycle
 Context Switching
 Process Control Block
 Scheduling
 Process Control and Process Handling Commands
 Advantages and Disadvantages
 Conclusion
 References
What is Process?
 A process is a program during execution.
o Program = static file (image) that contains code to execute
o Process = executing program = program + execution state.
 A process is the basic unit of execution in an operating system
o Each process has a number, its process identifier (pid).
 Different processes may run different instances of the same program
o E.g., my javac and your javac process both run the Java compiler
 At a minimum, process execution requires following resources:
o Memory to contain the program code and data
o A set of CPU registers to support execution
Process in Memory
(b, *p) - main
(a) - fun
heap (p)
(char[1000])
data (aa, buf)
text (code)
0
Process memory
Stack
Max
…
int aa;
char buf[1000];
void fun() {
int a;
…
}
main() {
int b;
char *p;
p = new char[1000];
fun();
}
Process and Process Management
 A program consists of code and data
 On running a program, the loader:
 reads and create the executable file
 sets up the process’s memory to contain the code & data from
executable
 pushes arguments on the stack
 sets the CPU registers properly & calls
 When Program starts running
main(args) {
initialize_java();
ret = main(args);
exit(ret)
}
We can say “process” is now running, When main() returns, OS
calls “exit()” which destroys the process and returns all resources
Process Life Cycle
• Processes are always either executing, waiting to execute or
blocked waiting for an event to occur
A pre-emptive scheduler will force a transition from running to ready. A
non-preemptive scheduler waits.
Cont..
 Process has an execution state
 ready: waiting to be assigned to CPU
 running: executing on the CPU
 waiting: waiting for an event, e.g. I/O
 Blocked: waiting for another process execution, e.g. I/o one,
sleep over
 The OS maintains a collection of process state s
 typically one queue for each state – e.g., ready, waiting, …
 each PCB is put onto a queue according to its current state
 as a process changes state, its PCB is unlinked from one queue,
and linked to another
 Process states are change in response to events – interrupts, traps
Process Creation and Termination
 Processes are created …
o When the system boots
o By the actions of another process (more later)
o By the actions of a user
o By the actions of a batch manager
 Processes terminate …
o Normally – exit
o An error due to process Blocking
o An error due to Exceptions
o Terminated (killed) by the actions a user or a process
Process Control Block
PCB
 Contains:
o Process Identification
o Processor State Information
o Process Control Information
 Attributes of Process Control Block : Process
Id(Pid) , Parent Process Id(ppid), Name, Priority,
Memory Description, Active File Description,
Register Save Area, I/O resource Description
Context Switching
 Context switch is the act of switching the CPU
from one process to another .
 Reasons for Context Switching
 Completion of a process
 Completion of the time slice/quantum
 Blocking call like I/O, Sleep call
 Interrupt Occurs / An exception occurs
Scheduling
 Scheduler invokes only due to system calls.
 Which process can enter running state?
 Criteria depends on
– CPU Utilization
– Throughput
– Turnaround time
– Waiting time
– Response time
 Scheduler loads context from top of the stack
Process Control and Process
Handling System Calls()
OS must include calls to enable special control of a process:
 Priority manipulation:
 nice(), which specifies base process priority (initial priority)
 Debugging support:
 ptrace(), allows a process to be put under control of
another process
 The other process can set breakpoints, e.g. registers
 Alarms and time:
 Sleep puts a process on a timer queue waiting for some
number of seconds, supporting an alarm functionality
Cont..
 Process Handling System Calls
1. getpid():Used to get process id
2. getppid():Used to get Parent Process id
3. exit():Used to exit and calls pending buffer
contents
4. fork():Used to create child Process
5. waitpid():Used to block parent process till the
completion of child process.
6. execl():Used to overwrites current address
space of child process
Advantages and Disadvantages
 Advantages:
 Multi-Programming and Time sharing
 You Can explore complex processing in to
sub-Processing
 Due to that your system became faster
 Disadvantages:
 Deadlock
 Poor overlaps of I/O and Cpu
Conclusion
 We conclude that It is possible to build a
simple mechanism that is sufficient to realize
downloading,
migration,Exceptionhandling,checkpointhag,e
mulation and debugging in between multiple
processes are running at time. And the real
time examples are media player , Laptops ,
Cpu , TV , Mobiles etc..
References
1. Sape J. Mullender " Process Management in a Distributed
Operating System ", Centre for Mathematics & Computer Science
Amsterdam and Computer Laboratory,Cambridge University
2. IEEEConference and Workshop on Engineering of Computer Based
Systems,”Developing Complex Systems -Incorporating Human
Variability into the Process “ 1997, by Stephanie M. White, Jerry M.
Owens, Computer Science and Management Engineering C.W.
Post Campus, Long Island University
3. International Conference of Information and Communication
Technology (ICoICT) 2013 IEEE on “Dynamic Process Migration
Framework” By Amirreza Zarrabi, Khairulmizam Samsudin and
Amin Ziaeiy Department of Computer and Communication Systems,
Faculty of Engineering,Universiti Putra Malaysia, 43400 UPM
Serdang, Selangor, Malaysia
4. http://en.wikipedia.org/wiki/Process_Management(Computing)
THANKING YOU!..
Any Question???

Más contenido relacionado

La actualidad más candente

Processes Control Block (Operating System)
Processes Control Block (Operating System)Processes Control Block (Operating System)
Processes Control Block (Operating System)
Imdad Ullah
 

La actualidad más candente (20)

Process in operating system
Process in operating systemProcess in operating system
Process in operating system
 
Os unit 3 , process management
Os unit 3 , process managementOs unit 3 , process management
Os unit 3 , process management
 
File concept and access method
File concept and access methodFile concept and access method
File concept and access method
 
Process of operating system
Process of operating systemProcess of operating system
Process of operating system
 
process control block
process control blockprocess control block
process control block
 
Inter Process Communication
Inter Process CommunicationInter Process Communication
Inter Process Communication
 
Deadlock Avoidance - OS
Deadlock Avoidance - OSDeadlock Avoidance - OS
Deadlock Avoidance - OS
 
MULTILEVEL QUEUE SCHEDULING
MULTILEVEL QUEUE SCHEDULINGMULTILEVEL QUEUE SCHEDULING
MULTILEVEL QUEUE SCHEDULING
 
Disk management
Disk managementDisk management
Disk management
 
INTER PROCESS COMMUNICATION (IPC).pptx
INTER PROCESS COMMUNICATION (IPC).pptxINTER PROCESS COMMUNICATION (IPC).pptx
INTER PROCESS COMMUNICATION (IPC).pptx
 
Process synchronization in Operating Systems
Process synchronization in Operating SystemsProcess synchronization in Operating Systems
Process synchronization in Operating Systems
 
Processes Control Block (Operating System)
Processes Control Block (Operating System)Processes Control Block (Operating System)
Processes Control Block (Operating System)
 
Chapter 3 - Processes
Chapter 3 - ProcessesChapter 3 - Processes
Chapter 3 - Processes
 
Scheduling algorithms
Scheduling algorithmsScheduling algorithms
Scheduling algorithms
 
Operating system 11 system calls
Operating system 11 system callsOperating system 11 system calls
Operating system 11 system calls
 
System call
System callSystem call
System call
 
Introduction to System Calls
Introduction to System CallsIntroduction to System Calls
Introduction to System Calls
 
Operating Systems: Process Scheduling
Operating Systems: Process SchedulingOperating Systems: Process Scheduling
Operating Systems: Process Scheduling
 
Operating Systems - Processor Management
Operating Systems - Processor ManagementOperating Systems - Processor Management
Operating Systems - Processor Management
 
File management
File managementFile management
File management
 

Destacado (7)

Organising - MANAGEMENT PROCESS
Organising - MANAGEMENT PROCESSOrganising - MANAGEMENT PROCESS
Organising - MANAGEMENT PROCESS
 
Os presentation process
Os presentation processOs presentation process
Os presentation process
 
Lecture 5 process concept
Lecture 5   process conceptLecture 5   process concept
Lecture 5 process concept
 
Memory management
Memory managementMemory management
Memory management
 
Processes of management
Processes of managementProcesses of management
Processes of management
 
Memory management
Memory managementMemory management
Memory management
 
Introduction to Computers
Introduction to ComputersIntroduction to Computers
Introduction to Computers
 

Similar a Process management

Operating Systems Unit Two - Fourth Semester - Engineering
Operating Systems Unit Two - Fourth Semester - EngineeringOperating Systems Unit Two - Fourth Semester - Engineering
Operating Systems Unit Two - Fourth Semester - Engineering
Yogesh Santhan
 
Operating System 3
Operating System 3Operating System 3
Operating System 3
tech2click
 
Ch2_Processes_and_process_management_1.ppt
Ch2_Processes_and_process_management_1.pptCh2_Processes_and_process_management_1.ppt
Ch2_Processes_and_process_management_1.ppt
Mohammad Almuiet
 
23565104 process-management(2)
23565104 process-management(2)23565104 process-management(2)
23565104 process-management(2)
Anuj Malhotra
 
15. Computer Systems Basic Software 1
15. Computer Systems   Basic Software 115. Computer Systems   Basic Software 1
15. Computer Systems Basic Software 1
New Era University
 

Similar a Process management (20)

Lecture_Slide_4.pptx
Lecture_Slide_4.pptxLecture_Slide_4.pptx
Lecture_Slide_4.pptx
 
OS-Process.pdf
OS-Process.pdfOS-Process.pdf
OS-Process.pdf
 
Operating Systems Unit Two - Fourth Semester - Engineering
Operating Systems Unit Two - Fourth Semester - EngineeringOperating Systems Unit Two - Fourth Semester - Engineering
Operating Systems Unit Two - Fourth Semester - Engineering
 
Cs8493 unit 2
Cs8493 unit 2Cs8493 unit 2
Cs8493 unit 2
 
OS (1).pptx
OS (1).pptxOS (1).pptx
OS (1).pptx
 
UNIT-2-Process-Management.pdf
UNIT-2-Process-Management.pdfUNIT-2-Process-Management.pdf
UNIT-2-Process-Management.pdf
 
Operating System 3
Operating System 3Operating System 3
Operating System 3
 
Ch2_Processes_and_process_management_1.ppt
Ch2_Processes_and_process_management_1.pptCh2_Processes_and_process_management_1.ppt
Ch2_Processes_and_process_management_1.ppt
 
My ppt @ bec doms on process management
My ppt @ bec doms on process managementMy ppt @ bec doms on process management
My ppt @ bec doms on process management
 
My ppt @ bec doms on process management
My ppt @ bec doms on process managementMy ppt @ bec doms on process management
My ppt @ bec doms on process management
 
unit-2.pdf
unit-2.pdfunit-2.pdf
unit-2.pdf
 
Process
ProcessProcess
Process
 
Operating Systems
Operating Systems Operating Systems
Operating Systems
 
Ch03- PROCESSES.ppt
Ch03- PROCESSES.pptCh03- PROCESSES.ppt
Ch03- PROCESSES.ppt
 
CH03.pdf
CH03.pdfCH03.pdf
CH03.pdf
 
CS6401 OPERATING SYSTEMS Unit 2
CS6401 OPERATING SYSTEMS Unit 2CS6401 OPERATING SYSTEMS Unit 2
CS6401 OPERATING SYSTEMS Unit 2
 
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)
 
OS - Chapter # 3 for the development of os
OS - Chapter # 3 for the development of osOS - Chapter # 3 for the development of os
OS - Chapter # 3 for the development of os
 
15. Computer Systems Basic Software 1
15. Computer Systems   Basic Software 115. Computer Systems   Basic Software 1
15. Computer Systems Basic Software 1
 

Más de Birju Tank

Mobile Broadband Wireless Access
Mobile Broadband Wireless AccessMobile Broadband Wireless Access
Mobile Broadband Wireless Access
Birju Tank
 

Más de Birju Tank (14)

Database security
Database securityDatabase security
Database security
 
Vulnerabilities in Android
Vulnerabilities in AndroidVulnerabilities in Android
Vulnerabilities in Android
 
Blackhole Attck detection in AODV Protocol
Blackhole Attck detection in AODV ProtocolBlackhole Attck detection in AODV Protocol
Blackhole Attck detection in AODV Protocol
 
5 g technology
5 g technology5 g technology
5 g technology
 
Literature review report
Literature review reportLiterature review report
Literature review report
 
Secure routing in DSR
Secure routing in DSRSecure routing in DSR
Secure routing in DSR
 
J2ME Mobile app
J2ME Mobile appJ2ME Mobile app
J2ME Mobile app
 
Android vs iOS encryption systems
Android vs iOS encryption systemsAndroid vs iOS encryption systems
Android vs iOS encryption systems
 
Software prototyping
Software prototypingSoftware prototyping
Software prototyping
 
Secure lab setup for cyber security
Secure lab setup for cyber securitySecure lab setup for cyber security
Secure lab setup for cyber security
 
Data mining
Data miningData mining
Data mining
 
Android operating system
Android operating systemAndroid operating system
Android operating system
 
Virtualization
VirtualizationVirtualization
Virtualization
 
Mobile Broadband Wireless Access
Mobile Broadband Wireless AccessMobile Broadband Wireless Access
Mobile Broadband Wireless Access
 

Último

Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort ServiceCall Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
dharasingh5698
 
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
dollysharma2066
 
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
dharasingh5698
 
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night StandCall Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
amitlee9823
 
notes on Evolution Of Analytic Scalability.ppt
notes on Evolution Of Analytic Scalability.pptnotes on Evolution Of Analytic Scalability.ppt
notes on Evolution Of Analytic Scalability.ppt
MsecMca
 
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Christo Ananth
 

Último (20)

Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024
 
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort ServiceCall Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
 
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
 
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
 
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
 
UNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its PerformanceUNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its Performance
 
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
 
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
 
Double rodded leveling 1 pdf activity 01
Double rodded leveling 1 pdf activity 01Double rodded leveling 1 pdf activity 01
Double rodded leveling 1 pdf activity 01
 
PVC VS. FIBERGLASS (FRP) GRAVITY SEWER - UNI BELL
PVC VS. FIBERGLASS (FRP) GRAVITY SEWER - UNI BELLPVC VS. FIBERGLASS (FRP) GRAVITY SEWER - UNI BELL
PVC VS. FIBERGLASS (FRP) GRAVITY SEWER - UNI BELL
 
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night StandCall Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
 
Generative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPTGenerative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPT
 
notes on Evolution Of Analytic Scalability.ppt
notes on Evolution Of Analytic Scalability.pptnotes on Evolution Of Analytic Scalability.ppt
notes on Evolution Of Analytic Scalability.ppt
 
Unleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leapUnleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leap
 
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
 
Bhosari ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready For ...
Bhosari ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready For ...Bhosari ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready For ...
Bhosari ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready For ...
 
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance BookingCall Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Booking
 
Online banking management system project.pdf
Online banking management system project.pdfOnline banking management system project.pdf
Online banking management system project.pdf
 
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
 
Call for Papers - International Journal of Intelligent Systems and Applicatio...
Call for Papers - International Journal of Intelligent Systems and Applicatio...Call for Papers - International Journal of Intelligent Systems and Applicatio...
Call for Papers - International Journal of Intelligent Systems and Applicatio...
 

Process management

  • 1. PROCESS MANAGEMENT By : Birju Tank((141060753017) IEEE Seminar on Operating System Programming At: GTU PG SCHOOL,GANDHINAGAR
  • 2. IEEE Papers Overview  Paper:1 Process Management in Distribute System [1] represents the how one process executing step by step in Program and Distributed Systems at initial stage.  Paper:2 Developing Complex Systems - Incorporating Human Variability into the Process [2] represents the process with the comparison of human variability.  Paper:3 Dynamic Process Migration Framework [3] represents the process migration from one machine to other machine , basically work on the Distributed Systems.
  • 3. Contents  IEEE Papers Overview  What is Process?-Introduction  Processes and Process Management  Process Life Cycle  Context Switching  Process Control Block  Scheduling  Process Control and Process Handling Commands  Advantages and Disadvantages  Conclusion  References
  • 4. What is Process?  A process is a program during execution. o Program = static file (image) that contains code to execute o Process = executing program = program + execution state.  A process is the basic unit of execution in an operating system o Each process has a number, its process identifier (pid).  Different processes may run different instances of the same program o E.g., my javac and your javac process both run the Java compiler  At a minimum, process execution requires following resources: o Memory to contain the program code and data o A set of CPU registers to support execution
  • 5. Process in Memory (b, *p) - main (a) - fun heap (p) (char[1000]) data (aa, buf) text (code) 0 Process memory Stack Max … int aa; char buf[1000]; void fun() { int a; … } main() { int b; char *p; p = new char[1000]; fun(); }
  • 6. Process and Process Management  A program consists of code and data  On running a program, the loader:  reads and create the executable file  sets up the process’s memory to contain the code & data from executable  pushes arguments on the stack  sets the CPU registers properly & calls  When Program starts running main(args) { initialize_java(); ret = main(args); exit(ret) } We can say “process” is now running, When main() returns, OS calls “exit()” which destroys the process and returns all resources
  • 7. Process Life Cycle • Processes are always either executing, waiting to execute or blocked waiting for an event to occur A pre-emptive scheduler will force a transition from running to ready. A non-preemptive scheduler waits.
  • 8. Cont..  Process has an execution state  ready: waiting to be assigned to CPU  running: executing on the CPU  waiting: waiting for an event, e.g. I/O  Blocked: waiting for another process execution, e.g. I/o one, sleep over  The OS maintains a collection of process state s  typically one queue for each state – e.g., ready, waiting, …  each PCB is put onto a queue according to its current state  as a process changes state, its PCB is unlinked from one queue, and linked to another  Process states are change in response to events – interrupts, traps
  • 9. Process Creation and Termination  Processes are created … o When the system boots o By the actions of another process (more later) o By the actions of a user o By the actions of a batch manager  Processes terminate … o Normally – exit o An error due to process Blocking o An error due to Exceptions o Terminated (killed) by the actions a user or a process
  • 11. PCB  Contains: o Process Identification o Processor State Information o Process Control Information  Attributes of Process Control Block : Process Id(Pid) , Parent Process Id(ppid), Name, Priority, Memory Description, Active File Description, Register Save Area, I/O resource Description
  • 12. Context Switching  Context switch is the act of switching the CPU from one process to another .  Reasons for Context Switching  Completion of a process  Completion of the time slice/quantum  Blocking call like I/O, Sleep call  Interrupt Occurs / An exception occurs
  • 13. Scheduling  Scheduler invokes only due to system calls.  Which process can enter running state?  Criteria depends on – CPU Utilization – Throughput – Turnaround time – Waiting time – Response time  Scheduler loads context from top of the stack
  • 14. Process Control and Process Handling System Calls() OS must include calls to enable special control of a process:  Priority manipulation:  nice(), which specifies base process priority (initial priority)  Debugging support:  ptrace(), allows a process to be put under control of another process  The other process can set breakpoints, e.g. registers  Alarms and time:  Sleep puts a process on a timer queue waiting for some number of seconds, supporting an alarm functionality
  • 15. Cont..  Process Handling System Calls 1. getpid():Used to get process id 2. getppid():Used to get Parent Process id 3. exit():Used to exit and calls pending buffer contents 4. fork():Used to create child Process 5. waitpid():Used to block parent process till the completion of child process. 6. execl():Used to overwrites current address space of child process
  • 16. Advantages and Disadvantages  Advantages:  Multi-Programming and Time sharing  You Can explore complex processing in to sub-Processing  Due to that your system became faster  Disadvantages:  Deadlock  Poor overlaps of I/O and Cpu
  • 17. Conclusion  We conclude that It is possible to build a simple mechanism that is sufficient to realize downloading, migration,Exceptionhandling,checkpointhag,e mulation and debugging in between multiple processes are running at time. And the real time examples are media player , Laptops , Cpu , TV , Mobiles etc..
  • 18. References 1. Sape J. Mullender " Process Management in a Distributed Operating System ", Centre for Mathematics & Computer Science Amsterdam and Computer Laboratory,Cambridge University 2. IEEEConference and Workshop on Engineering of Computer Based Systems,”Developing Complex Systems -Incorporating Human Variability into the Process “ 1997, by Stephanie M. White, Jerry M. Owens, Computer Science and Management Engineering C.W. Post Campus, Long Island University 3. International Conference of Information and Communication Technology (ICoICT) 2013 IEEE on “Dynamic Process Migration Framework” By Amirreza Zarrabi, Khairulmizam Samsudin and Amin Ziaeiy Department of Computer and Communication Systems, Faculty of Engineering,Universiti Putra Malaysia, 43400 UPM Serdang, Selangor, Malaysia 4. http://en.wikipedia.org/wiki/Process_Management(Computing)