Presentation is loading. Please wait.

Presentation is loading. Please wait.

Chapter 1. Introduction What is an Operating System? Mainframe Systems

Similar presentations


Presentation on theme: "Chapter 1. Introduction What is an Operating System? Mainframe Systems"— Presentation transcript:

1 Chapter 1. Introduction What is an Operating System? Mainframe Systems
Desktop Systems Multiprocessor Systems Distributed Systems 운영체제 금오공대 최태영

2 What is an Operating System?
A program that acts as an intermediary between a user of a computer and the computer hardware. Operating system goals: Execute user programs and make solving user problems easier. Make the computer system convenient to use. Use the computer hardware in an efficient manner. 운영체제 금오공대 최태영

3 Computer System Components
Hardware – provides basic computing resources (CPU, memory, I/O devices). Operating system – controls and coordinates the use of the hardware among the various application programs for the various users. Applications programs compilers, database systems, video games, … Users people, machines, other computers 운영체제 금오공대 최태영

4 Abstract View of System Components
운영체제 금오공대 최태영

5 Mainframe Systems Reduce setup time by batching similar jobs
Automatic job sequencing – automatically transfers control from one job to another. First rudimentary operating system. Resident monitor initial control in monitor control transfers to job when job completes control transfers back to monitor 운영체제 금오공대 최태영

6 Memory Layout for a Simple Batch System
운영체제 금오공대 최태영

7 Multiprogrammed Batch Systems
Several jobs are kept in main memory at the same time, and the CPU is multiplexed among them. 운영체제 금오공대 최태영

8 OS Features Needed for Multiprogramming
I/O routine supplied by the system. Memory management – the system must allocate the memory to several jobs. CPU scheduling – the system must choose among several jobs ready to run. Allocation of devices. 운영체제 금오공대 최태영

9 Time-Sharing Systems - Interactive Computing
The CPU is multiplexed among several jobs. A job is swapped in and out of memory to the disk. On-line communication between the user and the system is provided; when the operating system finishes the execution of one command, it seeks the next “control statement” from the user’s keyboard. On-line system must be available for users to access data and code. 운영체제 금오공대 최태영

10 Desktop Systems Personal computers - computer system dedicated to a single user. I/O devices - keyboards, mice, display screens, small printers User convenience and responsiveness. Can adopt technology developed for larger operating system. May run several different types of operating systems (Windows, MacOS, UNIX, Linux) 운영체제 금오공대 최태영

11 Parallel Systems Multiprocessor systems with more than one CPU in close communication Tightly coupled system processors share memory and a clock communication through the shared memory Advantages of parallel system: Increased throughput Economical Increased reliability 운영체제 금오공대 최태영

12 Distributed Systems Distribute the computation among several physical processors. Loosely coupled system each processor has its own local memory, processors communicate with one another through various communication lines Client-Server structure vs. peer-to-peer system Advantages of distributed systems Resource Sharing Computation speed up – load sharing Reliability 운영체제 금오공대 최태영

13 General Structure of Client-Server
운영체제 금오공대 최태영

14 Migration of Operating-System Concepts and Features
01분반 ¾ 수업진도 운영체제 금오공대 최태영

15 Chapter 2. Computer-System Structure
Computer System Operation I/O Structure Storage Structure Storage Hierarchy Hardware Protection 운영체제 금오공대 최태영

16 Computer-System Architecture
운영체제 금오공대 최태영

17 Computer-System Operation
I/O devices and the CPU can execute concurrently. Each device controller is in charge of a particular device type. It has a local buffer. CPU moves data from/to main memory to/from local buffers I/O is from the device to local buffer of controller. Device controller informs CPU that it has finished its operation by causing an interrupt. 운영체제 금오공대 최태영

18 Common Functions of Interrupts
Interrupt transfers control to the interrupt service routine generally, through the interrupt vector, which contains the addresses of all the service routines. Interrupt architecture must save the address of the interrupted instruction. The operating system preserves the state of the CPU by storing registers and the program counter. Incoming interrupts are disabled while another interrupt is being processed to prevent a lost interrupt. A trap is a software-generated interrupt caused either by an error or a user request. 야간 ¾ 진도 (재설명 필요) 운영체제 금오공대 최태영

19 Interrupt Time Line for a Single Process Doing Output
02분반 ¾ 수업 진도 운영체제 금오공대 최태영

20 I/O Structure After I/O starts, control returns to user program only upon I/O completion Synchronous I/O wait instruction After I/O starts, control returns to user program without waiting for I/O completion. Asynchronous I/O device-status table 운영체제 금오공대 최태영

21 Two I/O Methods Synchronous Asynchronous 운영체제 금오공대 최태영

22 Device-Status Table 3/10 야간 운영체제 금오공대 최태영

23 Direct Memory Access Structure
Used for high-speed I/O devices to transmit information at close to memory speeds. Device controller transfers blocks of data from buffer storage directly to main memory without CPU intervention. Only one interrupt is generated per block, rather than the one interrupt per byte. 운영체제 금오공대 최태영

24 Moving-Head Disk Mechanism
운영체제 금오공대 최태영

25 Storage-Device Hierarchy
운영체제 금오공대 최태영

26 Migration of A from Disk to Register
운영체제 금오공대 최태영

27 Hardware Protection Dual-Mode Operation I/O Protection
Memory Protection CPU Protection 운영체제 금오공대 최태영

28 Dual-Mode Operation Sharing system resources requires operating system to ensure that an incorrect program cannot cause other programs to execute incorrectly. Provide hardware support to differentiate between at least two modes of operations. User mode – execution done on behalf of a user. Monitor mode (also kernel mode or system mode) 운영체제 금오공대 최태영

29 Dual-Mode Operation (Cont.)
Mode bit added to computer hardware to indicate the current mode: monitor(0) or user(1). When an interrupt or fault occurs hardware switches to monitor mode. monitor user Interrupt/fault set user mode Privileged instructions can be issued only in monitor mode. 운영체제 금오공대 최태영

30 I/O Protection & Memory Protection
All I/O instructions are privileged instructions. Must ensure that a user program could never gain control of the computer in monitor mode (i.e., a user program that, as part of its execution, stores a new address in the interrupt vector). Memory Protection Two registers determine the range of legal addresses a program may access: Base register Limit register 3/10 02분반 I/O 까지 했음 운영체제 금오공대 최태영

31 Use of a System Call to Perform I/O
운영체제 금오공대 최태영

32 Use of a Base and Limit Register
운영체제 금오공대 최태영

33 Hardware Address Protection
운영체제 금오공대 최태영


Download ppt "Chapter 1. Introduction What is an Operating System? Mainframe Systems"

Similar presentations


Ads by Google