Introduction and Overview Operating System Structures
Introduction and Overview Operating System Structures
OS Services
Interface for users
Components and their interconnections
OS services
Interface of user and OS
OS functions provided through system calls
Types of System calls
Structure of OS
Defining goals of OS
Modularity and Layered approach
Mechanisms and policies
Microkernel and Monolithic OS
Copy
from one
file to
another
OS Spring
FAST-NU 2020 Campus
Karachi 16
Types of System Calls
Systems calls are grouped into six categories
Process control
File management
Device management
Information maintenance
Communications
Protection
Process Control
end, abort load, execute
wait event, signal event
allocate and free memory
create process, terminate process
get process attributes, set process attributes
wait for time
OS Spring 2020 FAST-NU Karachi Campus 17
Examples of Windows and Unix System Calls
Monolithic Structure
Simplest structure has no structure
Monolithic structure
Original UNIX operating system had limited
structuring
Consists of two separable parts
The kernel and system programs
OS Spring 2020 FAST-NU Karachi Campus 36
Traditional UNIX System Structure
Process Management
Processes
Threads
Process Synchronization
CPU Scheduling
Deadlocks
Definitions
States of a process
Process Control Block
Threads of a process
Scheduling and schedulers
Scheduling queues
Operations on processes
Process creation and termination
Communication between processes
IPC using shared memory and message
passing