SlideShare ist ein Scribd-Unternehmen logo
1 von 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???

Weitere ähnliche Inhalte

Was ist angesagt?

Memory Management in OS
Memory Management in OSMemory Management in OS
Memory Management in OSKumar Pritam
 
Chapter 2 - Operating System Structures
Chapter 2 - Operating System StructuresChapter 2 - Operating System Structures
Chapter 2 - Operating System StructuresWayne Jones Jnr
 
Chapter 12 - Mass Storage Systems
Chapter 12 - Mass Storage SystemsChapter 12 - Mass Storage Systems
Chapter 12 - Mass Storage SystemsWayne Jones Jnr
 
Operating System 3
Operating System 3Operating System 3
Operating System 3tech2click
 
cpu scheduling
cpu schedulingcpu scheduling
cpu schedulinghashim102
 
Operating system structures
Operating system structuresOperating system structures
Operating system structuresMohd Arif
 
Os unit 3 , process management
Os unit 3 , process managementOs unit 3 , process management
Os unit 3 , process managementArnav Chowdhury
 
Process management in os
Process management in osProcess management in os
Process management in osSumant Diwakar
 
CPU Scheduling in OS Presentation
CPU Scheduling in OS  PresentationCPU Scheduling in OS  Presentation
CPU Scheduling in OS Presentationusmankiyani1
 
Introduction to System Calls
Introduction to System CallsIntroduction to System Calls
Introduction to System CallsVandana Salve
 
Operating Systems - Processor Management
Operating Systems - Processor ManagementOperating Systems - Processor Management
Operating Systems - Processor ManagementDamian T. Gordon
 
Process concept
Process conceptProcess concept
Process conceptjangezkhan
 
Operating system memory management
Operating system memory managementOperating system memory management
Operating system memory managementrprajat007
 
Processes description and process control.
Processes description and process control.Processes description and process control.
Processes description and process control.Ahsan Rahim
 
Linux process management
Linux process managementLinux process management
Linux process managementRaghu nath
 
6 basic steps of software development process
6 basic steps of software development process6 basic steps of software development process
6 basic steps of software development processRiant Soft
 

Was ist angesagt? (20)

Memory Management in OS
Memory Management in OSMemory Management in OS
Memory Management in OS
 
Chapter 2 - Operating System Structures
Chapter 2 - Operating System StructuresChapter 2 - Operating System Structures
Chapter 2 - Operating System Structures
 
operating system structure
operating system structureoperating system structure
operating system structure
 
Chapter 12 - Mass Storage Systems
Chapter 12 - Mass Storage SystemsChapter 12 - Mass Storage Systems
Chapter 12 - Mass Storage Systems
 
Operating System 3
Operating System 3Operating System 3
Operating System 3
 
cpu scheduling
cpu schedulingcpu scheduling
cpu scheduling
 
Operating system structures
Operating system structuresOperating system structures
Operating system structures
 
process control block
process control blockprocess control block
process control block
 
Os unit 3 , process management
Os unit 3 , process managementOs unit 3 , process management
Os unit 3 , process management
 
Process management in os
Process management in osProcess management in os
Process management in os
 
CPU Scheduling in OS Presentation
CPU Scheduling in OS  PresentationCPU Scheduling in OS  Presentation
CPU Scheduling in OS Presentation
 
Introduction to System Calls
Introduction to System CallsIntroduction to System Calls
Introduction to System Calls
 
Operating Systems - Processor Management
Operating Systems - Processor ManagementOperating Systems - Processor Management
Operating Systems - Processor Management
 
Process concept
Process conceptProcess concept
Process concept
 
Chapter 8 - Main Memory
Chapter 8 - Main MemoryChapter 8 - Main Memory
Chapter 8 - Main Memory
 
Operating system memory management
Operating system memory managementOperating system memory management
Operating system memory management
 
Processes description and process control.
Processes description and process control.Processes description and process control.
Processes description and process control.
 
Linux process management
Linux process managementLinux process management
Linux process management
 
6 basic steps of software development process
6 basic steps of software development process6 basic steps of software development process
6 basic steps of software development process
 
08 Operating System Support
08  Operating  System  Support08  Operating  System  Support
08 Operating System Support
 

Andere mochten auch (10)

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
 
Process of operating system
Process of operating systemProcess of operating system
Process of operating system
 
Processes and threads
Processes and threadsProcesses and threads
Processes and threads
 
Processes Control Block (Operating System)
Processes Control Block (Operating System)Processes Control Block (Operating System)
Processes Control Block (Operating System)
 
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
 

Ähnlich wie Process management

Lecture_Slide_4.pptx
Lecture_Slide_4.pptxLecture_Slide_4.pptx
Lecture_Slide_4.pptxDiptoRoy21
 
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 - EngineeringYogesh Santhan
 
UNIT-2-Process-Management.pdf
UNIT-2-Process-Management.pdfUNIT-2-Process-Management.pdf
UNIT-2-Process-Management.pdfaakritii765
 
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.pptMohammad Almuiet
 
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 managementBabasab Patil
 
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 managementBabasab Patil
 
23565104 process-management(2)
23565104 process-management(2)23565104 process-management(2)
23565104 process-management(2)Anuj Malhotra
 
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 osTahaShahid18
 
15. Computer Systems Basic Software 1
15. Computer Systems   Basic Software 115. Computer Systems   Basic Software 1
15. Computer Systems Basic Software 1New Era University
 

Ähnlich wie 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
 
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
 
Operating System
Operating SystemOperating System
Operating System
 

Mehr von Birju Tank

Database security
Database securityDatabase security
Database securityBirju Tank
 
Vulnerabilities in Android
Vulnerabilities in AndroidVulnerabilities in Android
Vulnerabilities in AndroidBirju Tank
 
Blackhole Attck detection in AODV Protocol
Blackhole Attck detection in AODV ProtocolBlackhole Attck detection in AODV Protocol
Blackhole Attck detection in AODV ProtocolBirju Tank
 
5 g technology
5 g technology5 g technology
5 g technologyBirju Tank
 
Literature review report
Literature review reportLiterature review report
Literature review reportBirju Tank
 
Secure routing in DSR
Secure routing in DSRSecure routing in DSR
Secure routing in DSRBirju Tank
 
J2ME Mobile app
J2ME Mobile appJ2ME Mobile app
J2ME Mobile appBirju Tank
 
Android vs iOS encryption systems
Android vs iOS encryption systemsAndroid vs iOS encryption systems
Android vs iOS encryption systemsBirju Tank
 
Software prototyping
Software prototypingSoftware prototyping
Software prototypingBirju Tank
 
Secure lab setup for cyber security
Secure lab setup for cyber securitySecure lab setup for cyber security
Secure lab setup for cyber securityBirju Tank
 
Android operating system
Android operating systemAndroid operating system
Android operating systemBirju Tank
 
Virtualization
VirtualizationVirtualization
VirtualizationBirju Tank
 
Mobile Broadband Wireless Access
Mobile Broadband Wireless AccessMobile Broadband Wireless Access
Mobile Broadband Wireless AccessBirju Tank
 

Mehr von 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
 

Kürzlich hochgeladen

Stork Webinar | APM Transformational planning, Tool Selection & Performance T...
Stork Webinar | APM Transformational planning, Tool Selection & Performance T...Stork Webinar | APM Transformational planning, Tool Selection & Performance T...
Stork Webinar | APM Transformational planning, Tool Selection & Performance T...Stork
 
US Department of Education FAFSA Week of Action
US Department of Education FAFSA Week of ActionUS Department of Education FAFSA Week of Action
US Department of Education FAFSA Week of ActionMebane Rash
 
KCD Costa Rica 2024 - Nephio para parvulitos
KCD Costa Rica 2024 - Nephio para parvulitosKCD Costa Rica 2024 - Nephio para parvulitos
KCD Costa Rica 2024 - Nephio para parvulitosVictor Morales
 
Artificial Intelligence in Power System overview
Artificial Intelligence in Power System overviewArtificial Intelligence in Power System overview
Artificial Intelligence in Power System overviewsandhya757531
 
multiple access in wireless communication
multiple access in wireless communicationmultiple access in wireless communication
multiple access in wireless communicationpanditadesh123
 
Research Methodology for Engineering pdf
Research Methodology for Engineering pdfResearch Methodology for Engineering pdf
Research Methodology for Engineering pdfCaalaaAbdulkerim
 
Levelling - Rise and fall - Height of instrument method
Levelling - Rise and fall - Height of instrument methodLevelling - Rise and fall - Height of instrument method
Levelling - Rise and fall - Height of instrument methodManicka Mamallan Andavar
 
DEVICE DRIVERS AND INTERRUPTS SERVICE MECHANISM.pdf
DEVICE DRIVERS AND INTERRUPTS  SERVICE MECHANISM.pdfDEVICE DRIVERS AND INTERRUPTS  SERVICE MECHANISM.pdf
DEVICE DRIVERS AND INTERRUPTS SERVICE MECHANISM.pdfAkritiPradhan2
 
2022 AWS DNA Hackathon 장애 대응 솔루션 jarvis.
2022 AWS DNA Hackathon 장애 대응 솔루션 jarvis.2022 AWS DNA Hackathon 장애 대응 솔루션 jarvis.
2022 AWS DNA Hackathon 장애 대응 솔루션 jarvis.elesangwon
 
FUNCTIONAL AND NON FUNCTIONAL REQUIREMENT
FUNCTIONAL AND NON FUNCTIONAL REQUIREMENTFUNCTIONAL AND NON FUNCTIONAL REQUIREMENT
FUNCTIONAL AND NON FUNCTIONAL REQUIREMENTSneha Padhiar
 
Energy Awareness training ppt for manufacturing process.pptx
Energy Awareness training ppt for manufacturing process.pptxEnergy Awareness training ppt for manufacturing process.pptx
Energy Awareness training ppt for manufacturing process.pptxsiddharthjain2303
 
"Exploring the Essential Functions and Design Considerations of Spillways in ...
"Exploring the Essential Functions and Design Considerations of Spillways in ..."Exploring the Essential Functions and Design Considerations of Spillways in ...
"Exploring the Essential Functions and Design Considerations of Spillways in ...Erbil Polytechnic University
 
System Simulation and Modelling with types and Event Scheduling
System Simulation and Modelling with types and Event SchedulingSystem Simulation and Modelling with types and Event Scheduling
System Simulation and Modelling with types and Event SchedulingBootNeck1
 
Katarzyna Lipka-Sidor - BIM School Course
Katarzyna Lipka-Sidor - BIM School CourseKatarzyna Lipka-Sidor - BIM School Course
Katarzyna Lipka-Sidor - BIM School Coursebim.edu.pl
 
Paper Tube : Shigeru Ban projects and Case Study of Cardboard Cathedral .pdf
Paper Tube : Shigeru Ban projects and Case Study of Cardboard Cathedral .pdfPaper Tube : Shigeru Ban projects and Case Study of Cardboard Cathedral .pdf
Paper Tube : Shigeru Ban projects and Case Study of Cardboard Cathedral .pdfNainaShrivastava14
 
Robotics Group 10 (Control Schemes) cse.pdf
Robotics Group 10  (Control Schemes) cse.pdfRobotics Group 10  (Control Schemes) cse.pdf
Robotics Group 10 (Control Schemes) cse.pdfsahilsajad201
 
Module-1-(Building Acoustics) Noise Control (Unit-3). pdf
Module-1-(Building Acoustics) Noise Control (Unit-3). pdfModule-1-(Building Acoustics) Noise Control (Unit-3). pdf
Module-1-(Building Acoustics) Noise Control (Unit-3). pdfManish Kumar
 
Gravity concentration_MI20612MI_________
Gravity concentration_MI20612MI_________Gravity concentration_MI20612MI_________
Gravity concentration_MI20612MI_________Romil Mishra
 
Industrial Applications of Centrifugal Compressors
Industrial Applications of Centrifugal CompressorsIndustrial Applications of Centrifugal Compressors
Industrial Applications of Centrifugal CompressorsAlirezaBagherian3
 
Main Memory Management in Operating System
Main Memory Management in Operating SystemMain Memory Management in Operating System
Main Memory Management in Operating SystemRashmi Bhat
 

Kürzlich hochgeladen (20)

Stork Webinar | APM Transformational planning, Tool Selection & Performance T...
Stork Webinar | APM Transformational planning, Tool Selection & Performance T...Stork Webinar | APM Transformational planning, Tool Selection & Performance T...
Stork Webinar | APM Transformational planning, Tool Selection & Performance T...
 
US Department of Education FAFSA Week of Action
US Department of Education FAFSA Week of ActionUS Department of Education FAFSA Week of Action
US Department of Education FAFSA Week of Action
 
KCD Costa Rica 2024 - Nephio para parvulitos
KCD Costa Rica 2024 - Nephio para parvulitosKCD Costa Rica 2024 - Nephio para parvulitos
KCD Costa Rica 2024 - Nephio para parvulitos
 
Artificial Intelligence in Power System overview
Artificial Intelligence in Power System overviewArtificial Intelligence in Power System overview
Artificial Intelligence in Power System overview
 
multiple access in wireless communication
multiple access in wireless communicationmultiple access in wireless communication
multiple access in wireless communication
 
Research Methodology for Engineering pdf
Research Methodology for Engineering pdfResearch Methodology for Engineering pdf
Research Methodology for Engineering pdf
 
Levelling - Rise and fall - Height of instrument method
Levelling - Rise and fall - Height of instrument methodLevelling - Rise and fall - Height of instrument method
Levelling - Rise and fall - Height of instrument method
 
DEVICE DRIVERS AND INTERRUPTS SERVICE MECHANISM.pdf
DEVICE DRIVERS AND INTERRUPTS  SERVICE MECHANISM.pdfDEVICE DRIVERS AND INTERRUPTS  SERVICE MECHANISM.pdf
DEVICE DRIVERS AND INTERRUPTS SERVICE MECHANISM.pdf
 
2022 AWS DNA Hackathon 장애 대응 솔루션 jarvis.
2022 AWS DNA Hackathon 장애 대응 솔루션 jarvis.2022 AWS DNA Hackathon 장애 대응 솔루션 jarvis.
2022 AWS DNA Hackathon 장애 대응 솔루션 jarvis.
 
FUNCTIONAL AND NON FUNCTIONAL REQUIREMENT
FUNCTIONAL AND NON FUNCTIONAL REQUIREMENTFUNCTIONAL AND NON FUNCTIONAL REQUIREMENT
FUNCTIONAL AND NON FUNCTIONAL REQUIREMENT
 
Energy Awareness training ppt for manufacturing process.pptx
Energy Awareness training ppt for manufacturing process.pptxEnergy Awareness training ppt for manufacturing process.pptx
Energy Awareness training ppt for manufacturing process.pptx
 
"Exploring the Essential Functions and Design Considerations of Spillways in ...
"Exploring the Essential Functions and Design Considerations of Spillways in ..."Exploring the Essential Functions and Design Considerations of Spillways in ...
"Exploring the Essential Functions and Design Considerations of Spillways in ...
 
System Simulation and Modelling with types and Event Scheduling
System Simulation and Modelling with types and Event SchedulingSystem Simulation and Modelling with types and Event Scheduling
System Simulation and Modelling with types and Event Scheduling
 
Katarzyna Lipka-Sidor - BIM School Course
Katarzyna Lipka-Sidor - BIM School CourseKatarzyna Lipka-Sidor - BIM School Course
Katarzyna Lipka-Sidor - BIM School Course
 
Paper Tube : Shigeru Ban projects and Case Study of Cardboard Cathedral .pdf
Paper Tube : Shigeru Ban projects and Case Study of Cardboard Cathedral .pdfPaper Tube : Shigeru Ban projects and Case Study of Cardboard Cathedral .pdf
Paper Tube : Shigeru Ban projects and Case Study of Cardboard Cathedral .pdf
 
Robotics Group 10 (Control Schemes) cse.pdf
Robotics Group 10  (Control Schemes) cse.pdfRobotics Group 10  (Control Schemes) cse.pdf
Robotics Group 10 (Control Schemes) cse.pdf
 
Module-1-(Building Acoustics) Noise Control (Unit-3). pdf
Module-1-(Building Acoustics) Noise Control (Unit-3). pdfModule-1-(Building Acoustics) Noise Control (Unit-3). pdf
Module-1-(Building Acoustics) Noise Control (Unit-3). pdf
 
Gravity concentration_MI20612MI_________
Gravity concentration_MI20612MI_________Gravity concentration_MI20612MI_________
Gravity concentration_MI20612MI_________
 
Industrial Applications of Centrifugal Compressors
Industrial Applications of Centrifugal CompressorsIndustrial Applications of Centrifugal Compressors
Industrial Applications of Centrifugal Compressors
 
Main Memory Management in Operating System
Main Memory Management in Operating SystemMain Memory Management in Operating System
Main Memory Management in Operating System
 

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)