Lecture01 Os 13fall
Lecture01 Os 13fall
10/24/2013
Early Systems
10/24/2013
Second Generation
10/24/2013
Third Generation
10/24/2013
MULTICS
10/24/2013
Pipelining
Array processing / SIMD
General multiprocessing / MIMD
Symmetric multiprocessing / SMP
High-end desktop
User is smart but may not be very computer savvy
Must provide good performance for applications, such as CAD/CAM
Provide hardware and software compatibility
Real-time systems
User is professional programmer
Focus on performance, defined response time, easy extendable hardware support, and
programming control
Embedded systems
10/24/2013
ABSTRACTION
- Simple, easier to use
interface (machineindependent)
- Hiding of unnecessary
details
10/24/2013
10/24/2013
10/24/2013
10
11
Elements of an OS
Processor/CPU
Controls the operations of computer and performs data processing functions
Exchanges data with memory using memory address register and memory buffer
register
Exchanges data with I/O devices using I/O address register and I/O buffer register
Main memory/Primary memory
Stores data and programs
Typically volatile
I/O modules
Moves data between a computer and external environment
Communicates with a variety of devices including secondary memory (disks),
communications equipment, and
terminals
System bus
Provides for communications among processors, main memory, and I/O modules
10/24/2013
12
OS Main Components
Process management
process creation; deletion; suspension
process synchronization; communication
Main-memory management
Manage used parts and their current users
Select processes to load
Allocate memory to running processes
13
OS Main Components
File system management
File + directory creation; deletion
File manipulation primitives
Mapping files onto secondary storage
Protection system
Distinguish between authorized and unauthorized
usage
Provide means of enforcement
10/24/2013
14
OS Concepts - Program
Program
Collection of instructions and data kept in ordinary
file on disk
Executable program, complete code output by
linker/loader, with input from libraries
Generated from source program and object code
15
OS Concepts - Process
Processes
Created by kernel as an
environment in which a program
executes
May be stopped and later
restarted by the OS
Process may acquire resources
(more memory, open files) not
present in the program
Process Tree: Child and parent
processes
Communication between
processes through messages
10/24/2013
16
OS Concepts - Threads
Threads
Stream of instruction execution; running instance
of a process code
A dispatchable unit of work to provide intraprocess concurrency
A process may have multiple threads of execution
in parallel, each thread executing sequentially
Threads may execute in time-sharing manner on a
single CPU, on multiple cores concurrently, or on
multiple CPUs
10/24/2013
17
OS Concepts - Files
Files
Root directory
10/24/2013
Students
Faculty
Amnon
Gil
Or
Roni
Papers
Progs
Grants
18
19
A System Call
10/24/2013
20