Operating System Lecture1
Operating System Lecture1
Operating System Lecture1
Lecture 2
Agenda for Today
Hardware (I/O, memory, and CPU)
protection
Operating system components and
services
System calls
Operating system structures
Interrupt Trap
System Calls
User can’t access directly to the kernel
code
The system call interface layer contains
entry point in the kernel code
Any user or application request that
involves access to any system resource
must be handled by the kernel code
Types Of System Calls
Process Control:Controls the execution of programs and their communication.
• File Management:Handles operations related to files and directories.
• Manages file permissions and access.
Library Call
System Call
trap
Dispatch Table
Service
Code
Kernel
Code
System Calls and Library
Functions
https://www.thegeekstuff.com/2012/07/system-
calls-library-functions/
Operating System
Structures
Simple Structure
Layered Approach
Microkernels
Virtual Machines
Simple Structures
MS-DOS : written to provide the most functionality in the least
space, so it was not divided into modules carefully
Simple Structures …
UNIX Monolithic
System Structure