































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
these files contain slides on main topics of coa and covers each and every topic in detail...it is for both beginners and students
Typology: Slides
1 / 39
This page cannot be seen from the preview
Don't miss anything!
































Operating System Support
+ Objectives and Functions
manner.
+ Operating System Services
A computer is a set of resources for the movement, storage, and processing of data and for the control of these functions ◼ The OS is responsible for managing these resources The OS as a control mechanism is unusual in two respects: ◼ The OS functions in the same way as ordinary computer software – it is a program executed by the processor ◼ The OS frequently relinquishes control and must depend on the processor to allow it to regain control
+ Types of Operating Systems
◼ The user/programmer interacts directly with the computer to request the execution of a job or to perform a transaction ◼ User may, depending on the nature of the application, communicate with the computer during the execution of the job
◼ Opposite of interactive ◼ The user’s program is batched together with programs from other users and submitted by a computer operator ◼ After the program is completed results are printed out for the user
+ Early Systems
◼ Processors were run from a console consisting of display lights, toggle switches, some form of input device and a printer
◼ Scheduling ◼ Sign-up sheets were used to reserve processor time ◼ This could result in wasted computer idle time if the user finished early ◼ If problems occurred the user could be forced to stop before resolving the problem ◼ Setup time ◼ A single program could involve ◼ Loading the compiler plus the source program into memory ◼ Saving the compiled program ◼ Loading and linking together the object program and common functions
+ Desirable Hardware Features ◼ Memory protection ◼ User program must not alter the memory area containing the monitor ◼ The processor hardware should detect an error and transfer control to the monitor ◼ The monitor aborts the job, prints an error message, and loads the next job ◼ Timer ◼ Used to prevent a job from monopolizing the system ◼ If the timer expires an interrupt occurs and control returns to monitor
◼ Can only be executed by the monitor ◼ If the processor encounters such an instruction while executing a user program an error interrupt occurs ◼ I/O instructions are privileged so the monitor retains control of all I/O devices ◼ Interrupts ◼ Gives the OS more flexibility in relinquishing control to and regaining control from user programs
+ Multi-Programming with Two Programs
+ Multi-Programming with Three Programs
Uniprogramming Multiprogramming Processor use 20% 40% Memory use 33% 67% Disk use 33% 67% Printer use 33% 67% Elapsed time 30 min 15 min Throughput rate 6 jobs/hr 12 jobs/hr Mean response time 18 min 10 min Table 8. Effects of Multiprogramming on Resource Utilization
+ Time Sharing Systems
◼ If there are n users actively requesting service at one time, each user will only see on the average 1 / n of the effective computer speed
+ Process
Process Control Block (PCB)
New Ready Blocked Running Exit
Admit Dispatch Timeout Release Event Wait Event Occurs Five State Process Model