Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Operating Systems
Background and Introduction
Tanenbaum
An Operating System is the Mother (In the S. Hussein sense. As in the Mother of all wars) of all programs, which controls all of the computer's resources and provides the base upon which the application programs can be written
Anand Dersingh
CE4103_1_2011 3
ANSI
An Operating System is software which controls the execution of computer programs and which may provide scheduling, debugging, I/O control, accounting, compilation, storage assignment, data management and related services
CE4103_1_2011
CE4103_1_2011
2/21/2012
Operating Systems
User
Application
Operating System
Hardware
CE4103_1_2011
CE4103_1_2011
CE4103_1_2011
CE4103_1_2011
2/21/2012
Processor Registers
User-visible registers
Enable machine or assembly language programmer to minimize main memory references by optimizing register use For high-level languages, an optimizing compiler will attempt to make intelligent choices of which variables to assign to registers and which to main memory locations
CE4103_1_2011
10
CE4103_1_2011
12
2/21/2012
Instruction Execution
Two steps
Processor reads (fetches) instructions from memory Processor executes each instruction
Instruction Register
Fetched instruction loaded into instruction register Categories
Processor-memory, processor-I/O, data processing, control
CE4103_1_2011
13
CE4103_1_2011
15
CE4103_1_2011
14
CE4103_1_2011
16
2/21/2012
Classes of Interrupts
CE4103_1_2011
17
CE4103_1_2011
19
Interrupts
Interrupt the normal sequencing of the processor Most I/O devices are slower than the processor
Processor must pause to wait for device
Interrupts
Consider a PC that operates at 1 GHz, which would allow roughly 109instructions per second. A typical hard disk has a rotational speed of 7200 revolutions per minute for a half-track rotation time of 4 ms, which is 4 million times slower than the processor. What do these two numbers imply?
CE4103_1_2011
18
CE4103_1_2011
20
2/21/2012
21
CE4103_1_2011
23
Interrupt Stage
Processor checks for interrupts If interrupt
Suspend execution of program Execute interrupt-handler routine
22
CE4103_1_2011
24
2/21/2012
Virtualization Products
Vmware VirtualBox Citrix Etc.
CE4103_1_2011
25
CE4103_1_2011
27
Virtualization
Why do we need them?
CE4103_1_2011
26