We think you have liked this presentation. If you wish to download it, please recommend it to your friends in any social system. Share buttons are a little bit lower. Thank you!
Presentation is loading. Please wait.
Published byKaia Swinford
Modified over 2 years ago
Operating Systems (CSCI2413) Lecture 2 Overview phones off (please)
© De Montfort University, 2004CSCI L22 Operating-System Roles Resource management Operating System Services System Calls Kernel Virtual Memory
© De Montfort University, 2004CSCI L23 Resource Management Process Management Memory Management File Management I/O Management Secondary Management Protection Command-Interpreter
© De Montfort University, 2004CSCI L24 Hardware Resources CPUMain Memory File Store I/O Devices O.S. User Interface Process Management Memory Management File Management I/O Management Application Program User
© De Montfort University, 2004CSCI L25 Process Management A process is a program in execution. A process requires the CPU time, memory, files, and I/O devices, to accomplish its task. OS is responsible for: –Process creation and deletion. –process suspension and resumption. –Provision of mechanisms for: process synchronization process communication
© De Montfort University, 2004CSCI L26 Memory Management Memory is a repository of quickly accessible data shared by the CPU and I/O devices. OS is responsible for: –Keeping track of which parts of memory are currently being used and by whom. –Deciding which processes to load when memory space becomes available. –Allocating and de-allocating memory space as needed.
© De Montfort University, 2004CSCI L27 File Management A files represent programs (both source and object codes) and data. OS is responsible for: –File creation and deletion. –Directory creation and deletion. –Manipulating files and directories. –Mapping files onto secondary storage. –File backup on stable (nonvolatile) storage media.
© De Montfort University, 2004CSCI L28 I/O Management The I/O system consists of: –A buffer-caching system –A general device-driver interface –Drivers for specific hardware devices
© De Montfort University, 2004CSCI L29 Secondary-Storage Management Generally, disks are used for both programs and data. OS is responsible for: –Free space management –Storage allocation –Disk scheduling
© De Montfort University, 2004CSCI L210 Protection A mechanism for controlling access by programs, processes, or users to both system and user resources. Protection must: –Distinguish between authorised and unauthorised usage –Specify the controls to be imposed. –Provide a means of enforcing the control.
© De Montfort University, 2004CSCI L211 Command Interpreter Commands are given to the OS by control statements which mainly deal with: –Resource management, as explained above The program that reads and interprets control statements is variously called: –Command-line-interpreter –Shell (in UNIX). Its function is to get and execute the next command.
© De Montfort University, 2004CSCI L212 Services Program Execution – load a program into memory and run it I/O operations – OS is responsible for performing I/O operations. File Manipulation – capability to create, read, write, and delete files. Communications – Exchange of information between processes executing either on the same computer or on a distant computer connected via network.
© De Montfort University, 2004CSCI L213 Services (cont..) Error detection – detecting errors in the CPU and memory, in I/O devices, or in user program
© De Montfort University, 2004CSCI L214 System Calls An interface between a running program and the operating system. In another word, the means by which a process requests a specific kernel service.
© De Montfort University, 2004CSCI L215 Hardware Resources CPUMain Memory Disk, terminal Network interface Response to many system calls from processes Kernel Traps and faults Virtual memory InterruptsNetwork Processes User
© De Montfort University, 2004CSCI L216 Virtual Memory Virtual memory enables a computer to appear to have more memory than its real physical memory –the technique is employed by all modern OS’s All computers have more hard disk space than real physical memory (RAM) –hard disk space is used as ‘imaginary’ RAM When a process starts, rather than loading the whole program into memory, the supervisor loads instructions and data into RAM in small blocks –these memory blocks are called pages modern page sizes are typically 2K or 4K bytes
© De Montfort University, 2004CSCI L217 Virtual Memory I llustration main memory supervisor task process 3 (page 1) process 2 process 1 hard disk program 1 program 2 program 3 main memory supervisor task process 3 (page 1) process 1 process 3 (page 2) there is not enough free space in memory for all of program 3 so, initially, only page 1 is loaded in (note process 1 is still writing to hard disk in the background) process 3, page 2 is now required, so process 2 has been swapped out to hard disk and the required page has been loaded into memory
© De Montfort University, 2004CSCI L218 Swapping When physical memory (RAM) becomes full the supervisor searches for unused pages –the unused page(s) (instructions or data pages from an inactive process) are copied out to hard disk –the required page is then loaded into RAM this is called swapping If a swapped-out page is required again another page is copied out and the needed one copied in –sometimes the OS can spend so much time swapping pages that little or no useful processing is done this is called disk thrashing
© De Montfort University, 2004CSCI L219 Virtual Machines The virtual machine concept takes virtual memory one stage further –a real machine simulates a number of virtual machines –each virtual machine has its own operating system (supervisor task) in its own block of virtual memory –all machine interaction (input / output) takes place via an underlying virtual machine controller task Intel processors have provided hardware support for virtual machines since 486’s –VMWare is a virtual machine program for PC’s –allows e.g. Win 95, Win NT and Linux to run at once
© De Montfort University, 2004CSCI L220 main memory Virtual Machine I llustration user process 1 virtual machine task supervisor task 1 (e.g. Win 95) user process 2 supervisor task 2 (e.g. Win NT) user process 3 supervisor task 3 (e.g. Linux)
Operating Systems Components of OS. Contents System Components Operating System Services System Calls System Programs System Structure Virtual Machines.
Operating System Structures. Common System Components Due to the complex nature of the modern operating systems, it is partitioned into smaller component.
1 Operating-System Structures Operating System & its purpose Operating Systems lead to new Hardware Features System Components System Services System Calls.
Adapted from the slides prepared by Alan Feuer Some material from Operating System Concepts by Silberschatz et. al. and Modern Operating Systems by Tanenbaum.
Processes Management. 3.2 Silberschatz, Galvin and Gagne ©2011 Operating System Concepts Essentials – 8 th Edition Process Management A process is a program.
Operating-System Structures. Operating System Services User Operating System Interface System Calls Types of System Calls System Programs Operating System.
Operating Systems. Topics OS Definition Types of PC OS Functions of OS Terms and Concepts DOS Commands.
Operating Systems Part I: Introduction. “I think that there is a world market for five computers” - Thomas J. Watson (1945)
OPERATING SYSTEM INTRODUCTION. OBJECTIVES o o To define the term Operating System. o o Computer System layers. o o Types of Operating Systems. o o Interpret.
Chapter 2: Operating-System Structures. 2.2 Chapter 2: Operating-System Structures Operating System Services User Operating System Interface System Calls.
OS Components and Structure Hank Levy. OS Structure l To understand an OS, let’s first look at its components and then how they’re composed or organized.
Operating System. 2 Lecture Schedule Week 1: –Introduction to Operating Systems, Computer System Structures, Operating System Structures Week 2 : Process.
FatMax Licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 2.5 LicenseCreative Commons Attribution-NonCommercial-ShareAlike 2.5.
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.
Operating Systems Chapter 6. Main functions of an operating system 1. User/computer interface: Provides an interface between the user and the computer.
So far Binary numbers Logic gates Digital circuits process data using gates – Half and full adder Data storage – Electronic memory – Magnetic memory –
Processes and Threads Chapter 3 and 4 Operating Systems: Internals and Design Principles, 6/E William Stallings Patricia Roy Manatee Community College,
Operating Systems Manage system resources –CPU scheduling –Process management –Memory management –Input/Output device management –Storage device management.
Systems Software System Software Enables the applications software to interact with the computer and Helps the computer manage its internal and external.
Computer-System Structures Er.Harsimran Singh
Silberschatz, Galvin and Gagne ©2009 Operating System Concepts – 8 th Edition, Chapter 2: Operating-System Structures.
I/O Management and Disk Scheduling Chapter 11. Categories of I/O Devices Human readable –Used to communicate with the user –Printers –Video display terminals.
Operating Systems Part IV: Memory Management. Main Memory Large array of words or bytes each having its own address Several processes must be kept in.
ECE3055 Computer Architecture and Operating Systems Lecture 9 Memory Subsystem (II) OS Perspective Prof. Hsien-Hsin Sean Lee School of Electrical and Computer.
Computers in the real world Objectives Understand the key ideas of the operating system Look at standard utility software and be able to describe them.
OPERATING SYSTEM An operating system is a group of computer programs that coordinates all the activities among computer hardware devices. It is the first.
1 Operating Systems Chapter 6. 2 What is an operating system? A program that runs on the hardware and supports Resource Abstraction Resource Sharing Abstracts.
Virtualization Technique Virtualization Technique System Virtualization I/O Virtualization.
1 Process Description and Control Chapter 2. 2 Process A program in execution An instance of a program running on a computer The entity that can be assigned.
© 2016 SlidePlayer.com Inc. All rights reserved.