What Is An Operating System?
What Is An Operating System?
Marks Distribution
Assignment 4 4 16
Mid Term 1 30 30
Final 1 40 40
Total 100
Class Rules
3hvr23b
Lecture 1
The Big Picture
What is an Operating System?
A bootstrap
loader is a
program that
resides in the
computer’s
non volatile
memory
The Big Picture
Computer System Structure
OS is a control program
• Controls execution of programs to prevent errors and improper
use of the computer
• It is especially concerned with the operation and control of I/O
devices.
Kernel and operating system?
“The one program running at all times on the computer” is the kernel.
Everything else is either a system program (ships with the operating
system) or an application program
The kernel is loaded into main memory. The kernel controls all requests
for disk, processor, or other resources.
Operating System Structure
Multiprogramming needed for efficiency
Operating System Concepts – 9th Edition 1.25 Silberschatz, Galvin and Gagne ©2013
Operating-System Operations (cont.)
Operating System Concepts – 9th Edition 1.26 Silberschatz, Galvin and Gagne ©2013
Transition from User to Kernel Mode
Timer to prevent infinite loop / process hogging resources
Timer is set to interrupt the computer after some time period
Keep a counter that is decremented by the physical clock.
Operating system set the counter (privileged instruction)
When counter zero generate an interrupt
Set up before scheduling process to regain control or terminate program that exceeds
allotted time
Operating System Concepts – 9th Edition 1.27 Silberschatz, Galvin and Gagne ©2013