Lect 2
Lect 2
Operating
System CHAPTER 2
Overview
2
Operating System
A program that
controls the execution of application programs
acts as an interface between applications and
hardware
OS
masks the details of the hardware from the
programmer
provides the programmer with a convenient interface
for using the system
3
User/Computer Interface
Application programs
Application
programming interface
Application Libraries/utilities Software
binary interface
Operating system
Instruction Set
Architecture
Execution hardware
Memory
System interconnect
translation Hardware
(bus)
I/O devices
Main
and
memory
networking
Kernel
Portion of operating system that is in main memory
Contains most frequently used functions
6
Evolution of Operating Systems
Time
Sharing
Multiprogramme Systems
d Batch Systems
Simple
Batch
Serial Systems
Processing
7
Uniprogramming
Time
(a) Uniprogramming
8
Multiprogramming
Program A Run Wait Run Wait
Processes
memory management
Microkernel architecture
Assigns only a few essential function to the kernel and
other OS services are provided by processes that run in
user mode
Multithreading
A technique in which a process, executing an
application, is divided into threads that can run
concurrently
12
Modern Operating Systems (2)
Object-oriented design
13
Windows Architecture
Service processes
System support Applications
processes
Service control
SVChost.exe Environment
manager
Task manager subsystems
Lsass Winmgmt.exe Windows
Winlogon Spooler Explorer POSIX
User
Session Services.exe application
manager Win32
Subsytem DLLs
Ntdll.dll
System
threads User mode
Kernel mode
System service dispatcher
(Kernel-mode callable interfaces)
Win32 USER,
I/O manager GDI
manager (registry)
Security reference
File system cache
Local procedure
Object manager
Virtual memory
Power manager
Configuration
Processes and
Plug and play
manager
monitor
threads
call
Device
and file Graphics
system drivers
drivers
Kernel
Hardware abstraction layer (HAL)
User Programs
Trap
Libraries
User Level
Kernel Level
System Call Interface
Inter-process
communication
File Subsystem
Process
Control Scheduler
Subsystem
Memory
Buffer Cache
management
character block
Device Drivers
Hardware Control
Kernel Level
Hardware Level
Hardware
coff
a.out elf
exec
switch
NFS
file mappings
FFS
virtual
device memory vnode/vfs
mappings framework interface
s5fs
anonymous
RFS
mappings
Common
Facilities
network tty
driver driver
user level
processes
processes
& scheduler
file network
systems protocols
virtual
kernel
memory
char device block device network de-
drivers drivers vice drivers
hardware
system network inter-
CPU terminal disk
memory face controller