SlideShare una empresa de Scribd logo
1 de 19
NASIR
           AHMID

PRESTON                  BS(CS)
  UNI

 Prof.
                           1st
Naeem
                        Semester
 Iqbal
          1421-212007
PROCESS CONCEPT
 PROCESS:
     A program in execution, process execution must
 progress in sequential fashion.
 A Process includes
    A program in execution
    An instance of a program running on a computer
    The entity that can be assigned to and executed on a
     processor
    A unit of activity characterized by the execution of a
     sequence of instructions a current state and an
     associated set of system resources
PROCESSES
 All the run able software on comp including OS is organized
  into a number of sequential processes or just processes for
  short processes is just an executing program, including the
  current values of the registers and variables. Conceptually each
  process has its virtual cpu.
 The cpu switches back and forth from process to processes,
  but to understand the system much easier to think about a
  collection of processes running in pseudo parallel, than to keep
  track of how the cpu switches from prog to prog .This back and
  forth switching is called multiprogramming.
THE PROCESS MODEL
(a) Multiprogramming of four programs.
(b) Conceptual model of four independent, sequential processes.
(c) Only one program active at any instant.
PROCESS IN MEMORY
PROCESSES CREATION
 OS need some way to make sure all the necessary processes
  exits.
 In general purpose systems. Some way is needed to create
  and terminate processes as needed during operation.
 Principal events that cause processes creation.
1. System initialization.
2. Executing of a processes creation system call.
3. User request to create new process.
4. Initiation of a batch job.
PROCESSES CREATION
 When OS is booted, typically several processes are created.
 Foreground processes: Processes that interact with
  human user and perform work them.
 Background processes: Not associated with particular
  users, but instead have specific function. E.g. designed to
  accept incoming email ,sleeping most of the day but comes
  to life when email arrives.
 Daemons: Processes that stay in the background to
  handle some activity such as email, web pages and so on
  called daemons.
PROCESSES CREATION
 Processes can be created after boot time as well.
 Often a running process issue system calls to create one or more new
  processes to help it do its job.
 Creating new processes is particularly useful when the work to be done
  can easily be formulated in terms of several related, but otherwise
  independent interacting processes.
 In interactive systems, users can start a program by typing a command
  or double clicking an icon.
 In command based UNIX systems running X windows, the new process
  takes the new window. In windows , when a processes started it doesn’t
  have a window, but it can create one or more and most do.
PROCESS TERMINATION
 After a process has been created, it starts running and does
  whatever its job is. However, no process lasts forever.
 Sooner or later the new process will terminate, usually on
   one of the following conditions:
1. Normal exit(voluntary).
2. Error exit(voluntary).
3. Fatal error(involuntary).
4. Killed by another processes(involuntary).
PROCESS TERMINATION
 Normal exit(voluntary): Terminate because they have done
  their work.
 Fatal error(involuntary): The process discovers a fatal error e.g.
  user types the command cc foo.c to compile the program foo.c and no
  file exists the compiler simply exits.
 Error exit(voluntary): An error caused by a process often due to
  a program e.g. executing an illegal instruction , referencing nonexistent
  memory, or divide by zero.
 Killed by another processes(involuntary): A process
  executes a system call telling the OS to kill some other process. Using
  kill system call.
PROCESS HIERARCHIES
 Parent creates a child process, child processes can create its
  own processes.
 Forms a hierarchy
    UNIX calls this a “process group”.
 Windows has no concept of hierarchy.
    All processes are created equal.
PROCESS STATES



State Transition diagram
• Possible process states
– ready
– running
– blocked
PROCESS STATES
 As a process executes, it changes states.
 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.
PROCESS STATES
IMPLEMENTATION OF PROCESS AND (PCB)
 To implement the process model, the OS maintains a table
    (an array of structures called the process table with one
    entry per process). Some authors call these entries process
    control block.
   These entry contains information about the:
   Process state.
   Program counter.
   CPU registers.
   CPU switching information.
   Memory management information.
   Accounting information.
   I/O status information.
PROCESS CONTROL BLOCK (PCB)
Os presentation process

Más contenido relacionado

La actualidad más candente

16. Concurrency Control in DBMS
16. Concurrency Control in DBMS16. Concurrency Control in DBMS
16. Concurrency Control in DBMS
koolkampus
 
Chapter 6 - Process Synchronization
Chapter 6 - Process SynchronizationChapter 6 - Process Synchronization
Chapter 6 - Process Synchronization
Wayne Jones Jnr
 
Linux process management
Linux process managementLinux process management
Linux process management
Raghu nath
 

La actualidad más candente (20)

Operating Systems - "Chapter 5 Process Synchronization"
Operating Systems - "Chapter 5 Process Synchronization"Operating Systems - "Chapter 5 Process Synchronization"
Operating Systems - "Chapter 5 Process Synchronization"
 
process creation OS
process creation OSprocess creation OS
process creation OS
 
Memory management
Memory managementMemory management
Memory management
 
Chapter 7 - Deadlocks
Chapter 7 - DeadlocksChapter 7 - Deadlocks
Chapter 7 - Deadlocks
 
Computer system architecture
Computer system architectureComputer system architecture
Computer system architecture
 
Os Threads
Os ThreadsOs Threads
Os Threads
 
Storage Management
Storage ManagementStorage Management
Storage Management
 
16. Concurrency Control in DBMS
16. Concurrency Control in DBMS16. Concurrency Control in DBMS
16. Concurrency Control in DBMS
 
Chapter 6 - Process Synchronization
Chapter 6 - Process SynchronizationChapter 6 - Process Synchronization
Chapter 6 - Process Synchronization
 
Unit 5 Advanced Computer Architecture
Unit 5 Advanced Computer ArchitectureUnit 5 Advanced Computer Architecture
Unit 5 Advanced Computer Architecture
 
key distribution in network security
key distribution in network securitykey distribution in network security
key distribution in network security
 
Demand paging
Demand pagingDemand paging
Demand paging
 
pipelining
pipeliningpipelining
pipelining
 
OS - Process Concepts
OS - Process ConceptsOS - Process Concepts
OS - Process Concepts
 
Operating Systems
Operating SystemsOperating Systems
Operating Systems
 
Multi processor scheduling
Multi  processor schedulingMulti  processor scheduling
Multi processor scheduling
 
Micro Programmed Control Unit
Micro Programmed Control UnitMicro Programmed Control Unit
Micro Programmed Control Unit
 
Deadlock
DeadlockDeadlock
Deadlock
 
DeadLock in Operating-Systems
DeadLock in Operating-SystemsDeadLock in Operating-Systems
DeadLock in Operating-Systems
 
Linux process management
Linux process managementLinux process management
Linux process management
 

Destacado (8)

Process in operating system
Process in operating systemProcess in operating system
Process in operating system
 
Lecture 5 process concept
Lecture 5   process conceptLecture 5   process concept
Lecture 5 process concept
 
Chapter 3 - Processes
Chapter 3 - ProcessesChapter 3 - Processes
Chapter 3 - Processes
 
Process of operating system
Process of operating systemProcess of operating system
Process of operating system
 
Processes Control Block (Operating System)
Processes Control Block (Operating System)Processes Control Block (Operating System)
Processes Control Block (Operating System)
 
Processes and threads
Processes and threadsProcesses and threads
Processes and threads
 
Process management
Process managementProcess management
Process management
 
Introduction to Computers
Introduction to ComputersIntroduction to Computers
Introduction to Computers
 

Similar a Os presentation process

4) system call acts as an interface to the OS services.A system call.pdf
4) system call acts as an interface to the OS services.A system call.pdf4) system call acts as an interface to the OS services.A system call.pdf
4) system call acts as an interface to the OS services.A system call.pdf
anokhilalmobile
 
Week 11Linux InternalsProcesses, schedulingLecture o.docx
Week 11Linux InternalsProcesses, schedulingLecture o.docxWeek 11Linux InternalsProcesses, schedulingLecture o.docx
Week 11Linux InternalsProcesses, schedulingLecture o.docx
melbruce90096
 
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
 
Linux process management
Linux process managementLinux process management
Linux process management
Raghu nath
 
Chapter -2 operating system presentation
Chapter -2 operating system presentationChapter -2 operating system presentation
Chapter -2 operating system presentation
chnrketan
 
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
 

Similar a Os presentation process (20)

OS (1).pptx
OS (1).pptxOS (1).pptx
OS (1).pptx
 
4) system call acts as an interface to the OS services.A system call.pdf
4) system call acts as an interface to the OS services.A system call.pdf4) system call acts as an interface to the OS services.A system call.pdf
4) system call acts as an interface to the OS services.A system call.pdf
 
Week 11Linux InternalsProcesses, schedulingLecture o.docx
Week 11Linux InternalsProcesses, schedulingLecture o.docxWeek 11Linux InternalsProcesses, schedulingLecture o.docx
Week 11Linux InternalsProcesses, schedulingLecture o.docx
 
Linux Programming
Linux ProgrammingLinux Programming
Linux Programming
 
UNIT-2-Process-Management.pdf
UNIT-2-Process-Management.pdfUNIT-2-Process-Management.pdf
UNIT-2-Process-Management.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
 
Operating Systems
Operating Systems Operating Systems
Operating Systems
 
Compyter system softwere
Compyter system softwereCompyter system softwere
Compyter system softwere
 
Lesson 6 Processor Management
Lesson 6 Processor ManagementLesson 6 Processor Management
Lesson 6 Processor Management
 
Linux process management
Linux process managementLinux process management
Linux process management
 
RTOS - Real Time Operating Systems
RTOS - Real Time Operating SystemsRTOS - Real Time Operating Systems
RTOS - Real Time Operating Systems
 
Chapter -2 operating system presentation
Chapter -2 operating system presentationChapter -2 operating system presentation
Chapter -2 operating system presentation
 
OS-Process.pdf
OS-Process.pdfOS-Process.pdf
OS-Process.pdf
 
Os notes
Os notesOs notes
Os notes
 
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
 
Os
OsOs
Os
 
Os
OsOs
Os
 
OS ppt.pdf
OS ppt.pdfOS ppt.pdf
OS ppt.pdf
 
Processing management
Processing managementProcessing management
Processing management
 
Operating Systems PPT 1 (1).pdf
Operating Systems PPT 1 (1).pdfOperating Systems PPT 1 (1).pdf
Operating Systems PPT 1 (1).pdf
 

Os presentation process

  • 1.
  • 2. NASIR AHMID PRESTON BS(CS) UNI Prof. 1st Naeem Semester Iqbal 1421-212007
  • 3. PROCESS CONCEPT  PROCESS: A program in execution, process execution must progress in sequential fashion.
  • 4.  A Process includes  A program in execution  An instance of a program running on a computer  The entity that can be assigned to and executed on a processor  A unit of activity characterized by the execution of a sequence of instructions a current state and an associated set of system resources
  • 5. PROCESSES  All the run able software on comp including OS is organized into a number of sequential processes or just processes for short processes is just an executing program, including the current values of the registers and variables. Conceptually each process has its virtual cpu.  The cpu switches back and forth from process to processes, but to understand the system much easier to think about a collection of processes running in pseudo parallel, than to keep track of how the cpu switches from prog to prog .This back and forth switching is called multiprogramming.
  • 6. THE PROCESS MODEL (a) Multiprogramming of four programs. (b) Conceptual model of four independent, sequential processes. (c) Only one program active at any instant.
  • 8. PROCESSES CREATION  OS need some way to make sure all the necessary processes exits.  In general purpose systems. Some way is needed to create and terminate processes as needed during operation.  Principal events that cause processes creation. 1. System initialization. 2. Executing of a processes creation system call. 3. User request to create new process. 4. Initiation of a batch job.
  • 9. PROCESSES CREATION  When OS is booted, typically several processes are created.  Foreground processes: Processes that interact with human user and perform work them.  Background processes: Not associated with particular users, but instead have specific function. E.g. designed to accept incoming email ,sleeping most of the day but comes to life when email arrives.  Daemons: Processes that stay in the background to handle some activity such as email, web pages and so on called daemons.
  • 10. PROCESSES CREATION  Processes can be created after boot time as well.  Often a running process issue system calls to create one or more new processes to help it do its job.  Creating new processes is particularly useful when the work to be done can easily be formulated in terms of several related, but otherwise independent interacting processes.  In interactive systems, users can start a program by typing a command or double clicking an icon.  In command based UNIX systems running X windows, the new process takes the new window. In windows , when a processes started it doesn’t have a window, but it can create one or more and most do.
  • 11. PROCESS TERMINATION  After a process has been created, it starts running and does whatever its job is. However, no process lasts forever.  Sooner or later the new process will terminate, usually on one of the following conditions: 1. Normal exit(voluntary). 2. Error exit(voluntary). 3. Fatal error(involuntary). 4. Killed by another processes(involuntary).
  • 12. PROCESS TERMINATION  Normal exit(voluntary): Terminate because they have done their work.  Fatal error(involuntary): The process discovers a fatal error e.g. user types the command cc foo.c to compile the program foo.c and no file exists the compiler simply exits.  Error exit(voluntary): An error caused by a process often due to a program e.g. executing an illegal instruction , referencing nonexistent memory, or divide by zero.  Killed by another processes(involuntary): A process executes a system call telling the OS to kill some other process. Using kill system call.
  • 13. PROCESS HIERARCHIES  Parent creates a child process, child processes can create its own processes.  Forms a hierarchy  UNIX calls this a “process group”.  Windows has no concept of hierarchy.  All processes are created equal.
  • 14. PROCESS STATES State Transition diagram • Possible process states – ready – running – blocked
  • 15. PROCESS STATES  As a process executes, it changes states.  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.
  • 17. IMPLEMENTATION OF PROCESS AND (PCB)  To implement the process model, the OS maintains a table (an array of structures called the process table with one entry per process). Some authors call these entries process control block.  These entry contains information about the:  Process state.  Program counter.  CPU registers.  CPU switching information.  Memory management information.  Accounting information.  I/O status information.