SLIDE 1
1
Processes
CS 217
2
Operating System
- Supports virtual machines
- Promises each process the illusion of
having whole machine to itself
- Provides services:
- Protection
- Scheduling
- Memory management
- File systems
- Synchronization
- etc.
Hardware OS Kernel User Process User Process
3
What is a Process?
- A process is a running program with its own …
- Processor state
– EIP, EFLAGS, registers
- Address space (memory)
– Text, bss, data, heap, stack
Hardware OS Kernel User Process User Process
4
Operating System
- Resource allocation
- Sharing
- Protection
- Fairness
- Higher-level abstractions
- Common strategies
- Chop up resources into small pieces and
allocate small pieces at fine-grain level
- Introduce level of indirection and
provide mapping from virtual resources to physical ones
- Use past history to predict future behavior