Operating System
  • Introduction
  • Chapter 1 Introduction
  • Chapter 2 Operating System Structures
  • Chapter 3 Processes
    • 3.1 Process Concept
    • 3.2 Process Scheduling
    • 3.3 Operation on Processes
    • 3.4 Interprocess Communication
  • Chapter 4 Threads
    • Summary: slides
    • 4.1 Overview
    • 4.2 Multithreading Models
    • 4.3 Thread Libraries
    • 4.4 Threading Issues
  • Chapter 6 Process Synchronization
    • 6.1 Background
    • 6.2 Critical-section problem
    • 6.3 Peterson's Solution
    • 6.4 Synchronization Hardware
    • 6.5 Semaphores
  • Summary ch1
  • Summary ch2
  • Summary ch3
  • Summary ch4
  • Summary ch5
  • Summary ch7
  • Summary ch6
  • Summary ch8
Powered by GitBook
On this page

Was this helpful?

Summary ch3

  1. Process Concept:

    (1)The program code, also called text section

    (2)Current activity context including program counter, processor registers

    (3)Stack containing temporary data

    (4)Data section containing global variables

    (5)Heap containing memory dynamically allocated during run time

  2. Process state:

    (1)new: The process is being created

    (2)running: Instructions are being executed

    (3)waiting: The process is waiting for some event to occur

    (4)ready: The process is waiting to be assigned to a processor

    (5)terminated: The process has finished execution

  3. Process Control Block (PCB):

    (1)Each process is represented by a PCB

    (2)Created and managed by the operating system

    (3)Contains the process elements

  4. When to switch process:

    (1)Clock interrupt

    (2)I/O interrupt

    (3)Memory fault

    (4)Trap

    (5)System call

  5. 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

  6. interprocess communication (IPC)

    (1)Shared memory

    (2)Message passing

PreviousSummary ch2NextSummary ch4

Last updated 5 years ago

Was this helpful?