• Process Table
  • Execution of the Operating System
  • UNIX Services
  • Unix foundations




    Download 1.51 Mb.
    bet5/9
    Sana19.05.2023
    Hajmi1.51 Mb.
    #61987
    1   2   3   4   5   6   7   8   9
    Bog'liq
    process

    I/O Tables

    • I/O device is available or assigned
    • Status of I/O operation
    • Location in main memory being used as the source or destination of the I/O transfer

    File Tables

    • Existence of files
    • Location on secondary memory
    • Current Status
    • Attributes
    • Sometimes this information is maintained by a file-management system

    Process Table

    • Process image consists of program, data, stack, and attributes
    • Attributes

    Process Control Block Process Identification

    • Unique numeric identifier
      • may be an index into the primary process table
    • User identifier
      • who is responsible for the job

    Execution of the Operating System

    • Nonprocess Kernel
    • Execution Within User Processes
      • operating system software within context of a user process
      • process executes in privileged mode when executing operating system code

    Execution of the Operating System

    • Process-Based Operating System
      • major kernel functions are separate processes
      • a process is invoked by the operating system

    The UNIX kernel

    • A special program that runs directly on the hardware.
    • Implements the process model and services.
    • Resides on disk, in a file /vmunix or /unix.
    • Bootstrapping: loads the kernel.
    • Initializes the system and sets up the environment, remains in memory before shut down

    UNIX Services

    • System call interface
    • Hardware exceptions
      • Divide by 0, overflowing user stack
    • Interrupts
      • Devices
    • Swapper, pagedaemon

    Download 1.51 Mb.
    1   2   3   4   5   6   7   8   9




    Download 1.51 Mb.