Giu 2531 61 12754 2023-09-26T07 37 37
Giu 2531 61 12754 2023-09-26T07 37 37
OPERATING
SYSTEMS
DEFINITION
02 OS JOB
03 OS BASICS
04 OS SERVICES
05 OS STRUCTURES
Dr. JOHN ZAKI 2
LECTURE OBJECTIVES
Understand OS SERVICES
01
Describe SYSTEM CALLS, USER MODE, KERNEL MODE
02
Understand OS operations
03
Know different OS structure
04
Dr. JOHN ZAKI 3
What is an
operating
system
(OS)?
Dr. JOHN ZAKI 4
A program
User
Applications
that acts as an intermediary
between a user of a computer UTILITIES
and the computer hardware
Operating System
A KERNEL KERNEL
Software interrupt
INT n
Halt the PC
HLT
EX:
1. I/O instructions
2. Memory management instructions
3. Set the mode bit (user/kernel)
4. Disable or enable interrupt
5. Halt the machine
● How do we guarantee that user does not explicitly set the mode bit to “kernel”?
○ System call changes mode to kernel, return from call resets it to user
evicting
How a Modern Computer Works
Virtualization – OS natively compiled for CPU, running guest OSes also natively
compiled
a. Consider VMware running WinXP guests, each running applications, all on
native WinXP host OS
b. VMM (virtual machine Manager) provides virtualization services
VIRTUALIZATION EXAMPLES
● Benefits:
○ Easier to extend a microkernel
○ Easier to port the operating system to new architectures
○ More reliable (less code is running in kernel mode)
○ More secure
● Downside:
○ Performance overhead of user space to kernel space
communication
Microkernel System Structure
Modules
01 WHAT IS OS?
02 OS BASICS
(NEW, READY, RUNNING, WAITING, TERMINATED….ETC)
03 OS SERVICES
FORK, EXEC, WAIT, EXIT
04 OS ARCHITECTURE