Unix foundations


Download 1.51 Mb.
bet4/9
Sana18.06.2023
Hajmi1.51 Mb.
#1583315
1   2   3   4   5   6   7   8   9
Bog'liq
process

The proc

  • Process table
    • Id
    • Location of the kernel address map for the u area
    • Current process state
    • Forward and backward pointers in scheduled queue
    • Sleep channel (7.2.3)
    • Scheduling priority and related (Chapter 5)
    • Signal handling info(Chapter 4).
    • MM info
    • Pointers to link active, free, zombie processes in lists
    • Flags
    • Pointers to keep structures on a hash queue by PID
    • Hierarchy info

A typical process hierarchy in 4.3BSD UNIX

  • Parent Process ID
  • pointer to parent’s proc
  • Pointer to the oldest child
  • Pointer to the younger sibling

Typical Functions of an Operating-System Kernel

Typical Functions of an Operating-System Kernel

  • I/O Management
    • Buffer management
    • Allocation of I/O channels and devices to processes
  • Support Functions
    • Interrupt handling
    • Accounting
    • Monitoring

Operating System Control Structures

  • An OS maintains the following tables for managing processes and resources:
    • Memory tables
    • I/O tables
    • File tables
    • Process tables

Memory Tables

  • Allocation of main memory to processes
  • Allocation of secondary memory to processes
  • Protection attributes for access to shared memory regions
  • Information needed to manage virtual memory

Download 1.51 Mb.

Do'stlaringiz bilan baham:
1   2   3   4   5   6   7   8   9




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©fayllar.org 2024
ma'muriyatiga murojaat qiling