Escolar Documentos
Profissional Documentos
Cultura Documentos
Operating Systems
Lecture 1
• Bruhadeshwar
– Location: B3 309, CSTAR
– Reach me: bezawada at iiit.ac.in
– Office Hours : Monday & Thursday 3.30-
4.30pm
• Research areas:
– Current: Network security, System
security, Malware Analysis, Network
Management, Web security
– Other: Communication protocols, Policy
Enforcement and Verification, and Cloud
Computing
• Alan Turing prediction: computers would have more than a billion words
by years 2000, paper in 1950
• Douglas Engelbart, inventor of Mouse made a futuristic prediction in 1959
about the downscaling of ICs NY Times Article
• Gordon Moore: “Cramming More Components onto Integrated Circuits” in
1965 Electronics Magazine
9/08/10 Bruhadeshwar ICS 231 Monsoon 2010 Lec 1.6
Computing Devices Everywhere
• Computer-system operation
– One or more CPUs, device controllers
connect through common bus providing
access to shared memory
– Concurrent execution of CPUs and devices
competing for memory cycles
Fundamentals
Process Control and Threads
Synchronization and scheduling
Protection, Address translation, Caching
Demand Paging
File Systems
Networking and Distributed Systems
Protection and Security
Advanced topics
Application
Virtual Machine Interface
Operating System
Physical Machine Interface
Hardware
• Software Engineering Problem:
– Turn hardware/software complexities =>
what programmers want/need
– Optimize for convenience, utilization, security,
reliability, etc…
• For Any OS area (e.g. file systems, virtual memory,
networking, scheduling):
– What’s the hardware interface? (physical reality)
– What’s the application interface? (nicer abstraction)
software
instruction set
hardware
• Most Likely:
– Memory Management
– I/O Management
– CPU Scheduling
– Communications
– Multitasking/multiprogramming?
• What about?
– File System?
– Multimedia Support?
– User Interface?
– Internet Browser?
• Is this only interesting to Academics??
Altair 8080
9/08/10 Bruhadeshwar ICS 231 Monsoon 2010 Lec 1.26
Simple OS: What if only one application?
• Examples:
– Very early computers
– Early PCs
– Embedded controllers (elevators, cars,
etc)
• OS becomes just a library of standard services
– Standard device drivers
– Interrupt handlers
– Math libraries
Virtual Physical
Addresses Addresses
CPU MMU
OS code
Page Table
Access
index V Rights PA
into
page
table table located
in physical P page no. offset Physical
memory Address
• Translation helps protection: 10
– Control translations, control access
– Should Users be able to change Page Table
» Buffer overflows?
Applications
User Mode
Standard Libs
Kernel Mode
Hardware
• OS as illusionist:
– Make hardware limitations go away
– Provide illusion of dedicated machine with
infinite memory and infinite processors
• OS as government:
– Protect users from each other
– Allocate resources efficiently and fairly
• OS as complex system:
– Constant tension between simplicity and
functionality or performance
• OS as history teacher
– Learn from past
– Adapt as hardware tradeoffs change