Presentation is loading. Please wait.

Presentation is loading. Please wait.

Chapter 1.2 Operating Systems. Layered Operating System model Hardware Operating System Application.

Similar presentations


Presentation on theme: "Chapter 1.2 Operating Systems. Layered Operating System model Hardware Operating System Application."— Presentation transcript:

1 Chapter 1.2 Operating Systems

2 Layered Operating System model Hardware Operating System Application

3 Absolute Binary Loader ABL Central Memory s3,t4

4 Command Interpreter ABL Central Memory chess s3,t4 Cmnd.Int. Fmgr.

5 Interactive usage

6 Batch Processing

7 File Manager Organizes data on disk Hides the details of physical files Offers standardized file organizations –Sequential –Random Access –Indexed Sequential Maintains File Directories

8 Random Access Files Space inefficient Fast access

9 Sequential Files Space efficient Slow access

10 Indexed Sequential Files Good compromise: Space efficient Access reasonably fast

11 Command Interpreter ABL chess Cmnd.Int. Fmgr.

12 Control by Command Interpreter Program X Return to CMND.INT Start User Pgm Cmnd Interpreter

13 Single-task Systems active waiting for cpu Blocked (= busy waiting) task completed start I/O activation load I/O completion

14 Interrupts Interrupt Handler

15 Program X Return to int.handlr Start User Pgm Interrupt Handler Find cause int. Control Unit

16 Interrupt Handler Based System Command interpreter User program File manager A.B.L. Interrupt handler

17 active waiting for cpu blocked task completed start I/O preemption activation load swap out I/O completion (interrupt) Multi-task Systems

18 Multitasking Issues Process Scheduling Which program becomes active when ? Job Scheduling (or Queue Management) Which programs reside in Central Memory ? Memory Management How much memory gets each program ? Output Spooling How to keep output of programs apart ?

19 Process Scheduler All programs have a priority and the one waiting with the highest priority becomes active. Non-preemptive Scheduling: Priorities are compared whenever the active program blocks itself a clock tick occurs (typically every 10 mS) Preemptive Scheduling Priorities are continuously compared.

20 Process Priorities active blocked +1 p = p 0 waiting for cpu +1

21 Job Scheduler Selects the programs to be loaded in Central Memory Manual selection (starting an application under Windows) Automatic selection –based on priorities –Based on the Round Robin algorithm

22 Round Robin Central memory Preempted tasks after t seconds New tasks Input queue Completed tasks

23 Memory Management Allocates memory to each program –Static Allocation Good Job Scheduling mandatory. –Dynamic Allocation: Virtual Memory Job Scheduling not so important.

24 Virtual Memory Page Table 1 2 3 4 5 6 cm pm 004 002 1003 1004 1007 1009 CMPM cm pm

25 Output Spooling Program AProgram BProgram CProgram D


Download ppt "Chapter 1.2 Operating Systems. Layered Operating System model Hardware Operating System Application."

Similar presentations


Ads by Google