Cs238 Lecture 3 Operating System Structures Dr. Alan R. Davis.

Slides:



Advertisements
Similar presentations
Operating Systems Components of OS
Advertisements

Operating Systems (CSCI2413) Lecture 2 Overview phones off (please)
Operating System Structures
Chap 2 System Structures.
SLC/Ver1.0/OS CONCEPTS/Oct'991INTRODUCTION What is an Operating System? Operating Structure -System Components -OS Services -System Calls & Programs -System.
Operating System Structure
Operating-System Structures 1. Operating-System System Components 2. Operating System Services 3. System Calls 4. System Structure 5. Virtual Machines.
3: OS Structures 1 OPERATING SYSTEM STRUCTURES PROCESS MANAGEMENT A process is a program in execution: (A program is passive, a process active.) A process.
3.1 Silberschatz, Galvin and Gagne ©2003 Operating System Concepts with Java Chapter 3: Operating-System Structures System Components Operating System.
1/21/2008CSCI 315 Operating Systems Design1 Operating System Structures Notice: The slides for this lecture have been largely based on those accompanying.
Silberschatz, Galvin and Gagne  Operating System Concepts Chapter 3: Operating-System Structures System Components Operating System Services.
Operating System and Computer Organization Background CS 502 Spring 99 WPI MetroWest/Southboro Campus.
ICS Principles of Operating Systems
2: OS Structures 1 Jerry Breecher OPERATING SYSTEMS STRUCTURES.
1/26/2004CSCI 315 Operating Systems Design1 Operating System Structures Notice: The slides for this lecture have been largely based on those accompanying.
Common System Components
Os31 Chapter 3 Operating-System Structures. os32 Outlines System Components Operating System Services System Calls System Programs System Structure Virtual.
Silberschatz, Galvin and Gagne  Operating System Concepts Common OS Components Process Management Memory Management File Management I/O System.
Silberschatz, Galvin and Gagne  Operating System Concepts Common System Components Process Management Main Memory Management File Management.
Chapter 3: Operating-System Structures System Components Operating System Services System Calls System Programs System Structure Virtual Machines System.
Abhinav Kamra Computer Science, Columbia University 3.1 Operating System Concepts Silberschatz, Galvin and Gagne  2002 Chapter 3: Operating-System Structures.
System Components Operating System Services System Calls System Programs System Structure Virtual Machines System Design and Implementation System Generation.
Prof. Hsien-Hsin Sean Lee
Silberschatz, Galvin and Gagne  Operating System Concepts Chapter 3: Operating-System Structures System Components Operating System Services.
Operating Systems Lecture 3 Computer Systems Review
Silberschatz, Galvin and Gagne  Applied Operating System Concepts Chapter 3: Operating-System Structures System Components OS Services System.
CHAPTER 2 OPERATING SYSTEM OVERVIEW 1. Operating System Operating System Definition A program that controls the execution of application programs and.
Module 1.1: Operating-System Structures
OPERATING SYSTEM OVERVIEW. Contents Basic hardware elements.
Chapter 3: Operating-System Structures System Components Operating System Services System Calls System Programs System Structure Virtual Machines System.
UNIX and Shell Programming (06CS36)
OS provide a user-friendly environment and manage resources of the computer system. Operating systems manage: –Processes –Memory –Storage –I/O subsystem.
Composition and Evolution of Operating Systems Introduction to Operating Systems: Module 2.
3.1 Operating System Concepts Chapter 3: Operating-System Structures System Components Operating System Services System Calls System Programs System Structure.
Silberschatz, Galvin and Gagne  Operating System Concepts Chapter 3: Operating-System Structures System Components Operating System Services.
Silberschatz and Galvin  Operating System Concepts Module 3: Operating-System Structures System Components Operating System Services System Calls.
3.1 Silberschatz, Galvin and Gagne ©2003 Operating System Concepts with Java Chapter 3: Operating-System Structures System Components Operating System.
Silberschatz, Galvin and Gagne  Operating System Concepts Chapter 3: Operating-System Structures System Components Operating System Services.
Silberschatz, Galvin, and Gagne  Applied Operating System Concepts Module 3: Operating-System Structures System Components Operating System Services.
3.1 Operating System Chapter 3: Operating-System Structures System Components Operating System Services System Calls System Programs System Structure Virtual.
OSes: 3. OS Structs 1 Operating Systems v Objectives –summarise OSes from several perspectives Certificate Program in Software Development CSE-TC and CSIM,
Silberschatz, Galvin and Gagne  Operating System Concepts Chapter 3: Operating-System Structures System Components Operating System Services.
OS, , Part I Operating - System Structures Department of Computer Engineering, PSUWannarat Suntiamorntut.
1 CSE Department MAITSandeep Tayal Operating-System Structures System Components Operating System Services System Calls System Programs System Structure.
UNIX and Shell Programming
1 CS.217 Operating System By Ajarn..Sutapart Sappajak,METC,MSIT Chapter 3 Operating-System Structures Slide 1 Chapter 3 Operating-System Structures.
BIT213,CISY Operating Systems 1
Silberschatz, Galvin, and Gagne  Applied Operating System Concepts Module 3: Operating-System Structures System Components Operating System Services.
Introduction to Operating System. 1.1 What is Operating System? An operating system is a program that manages the computer hardware. It also provides.
 PROCESS MANAGEMENT  A process is a program in execution: (A program is passive, a process active.)  A process has resources (CPU time, files) and.
1 Chapter 2: Operating-System Structures Services Interface provided to users & programmers –System calls (programmer access) –User level access to system.
23/06/ :54:20 CSC Alliance — 1 Kimera Richard Phone: INSTITUTE OF COMPUTER SCIENCE DEPARTMENT.
System Components Operating System Services System Calls.
Operating System Structure Lecture: - Operating System Concepts Lecturer: - Pooja Sharma Computer Science Department, Punjabi University, Patiala.
Silberschatz, Galvin and Gagne  Operating System Concepts Chapter 3: Operating-System Structures System Components Operating System Services.
OPERATING SYSTEMS STRUCTURES Jerry Breecher 2: Operating System Structures 1.
Module 3: Operating-System Structures System Components Operating System Services System Calls System Programs System Structure Virtual Machines System.
Chapter 3: Operating-System Structures
Chapter 3: Operating-System Structures
Module 3: Operating-System Structures
Operating System Structure
Chapter 3: Operating-System Structures
Computer-System Architecture
Chapter 1 Introduction to Operating System Part 5
Basic Concepts Protection: Security:
Chapter 2: Operating-System Structures
Introduction to Operating Systems
OPERATING SYSTEMS STRUCTURES
Chapter 2: Operating-System Structures
III. Operating System Structures
Presentation transcript:

Cs238 Lecture 3 Operating System Structures Dr. Alan R. Davis

System Components Process Management Main-Memory Management File Management I/O System Management Secondary-Storage Management Networking Protection System Command-Interpreter System

Process Management The creation and deletion of both user and system processes. The suspension and resumption of processes. Providing mechanisms for process synchronization. Providing mechanisms for process communication. Providing mechanisms for deadlock handling.

Main-Memory Management Keep track of which parts of memory are currently being used, and by whom. Decide which processes are to be loaded into memory when memory space becomes available. Allocate and deallocate memory space as needed.

File Management The creation and deletion of files. The creation and deletion of directories. The support of primitives for manipulating files and directories. The mapping of files onto secondary storage. The backup of files on nonvolatile storage media.

I/O System Management A memory management component including buffering, caching, and spooling. A general device-driver interface. Drivers for specific hardware devices.

Secondary Storage Management Free space management. Storage allocation. Disk scheduling. Defragmenting disks. Partitioning and formatting disks.

Networking Create, delete communications connection Send, receive messages Transfer status information Attach or detach remote devices

Protection Systems When multiple programs and users share a system we must prevent them from adversely affecting each other. A properly designed operating system must ensure that an incorrect (or malicious) program cannot cause other programs to execute incorrectly. We give the operating system control over other processes by distinguishing its instructions from all others.

Protection Systems cont’d By adding a special bit to the hardware, we can distinguish between instructions being executed in system mode, privileged mode, monitor mode, supervisor mode, and those being executed in user mode. The system starts (boots) in privileged mode, loads the operating system,and then starts user processes in user mode. Interrupts cause the system to switch from user mode to privileged mode. Some machine instructions are designated as privileged instructions.

Protection cont’d The hardware allows privileged instructions to be executed only in monitor mode. Attempts to do otherwise result in errors. To prevent the user from performing illegal I/O operations, all I/O instructions are privileged. Memory protection is accomplished by special purpose hardware to contain the base address and limit address for a program.

Protection cont’d CPU protection is accomplished with a timer. The operating system sets a timer before each change to user mode so that a user process can not monopolize the CPU. File protection is accomplished with extra bits associated with a file to indicate access rights (read, write, protected, etc.)

Command Interpreter System This is the interface between the user and the operating system. It could handle control statements on punched cards, statements typed on a console from the keyboard, or icons clicked by a mouse in a GUI environment. Commands deal with process creation and management, I/O handling, secondary-storage management, main memory management, file- system access, protection, and networking.

Operating System Services Program execution I/O operations File system manipulation Communications Error detection Resource allocation Accounting Protection

System Calls System calls provide the interface between a process and the operating system. They are generally available as assembly- language instructions, or in some higher level languages. System calls can be grouped into categories: process control, file manipulation, device manipulation, information maintenance, and communications.

System Calls cont’d Information must be passed to the operating system in a system call. It could be passed in registers. It could be passed in a block or table in memory. It could be passed on the stack.

Systems Programs File manipulation Status information - date, time, CPU usage File modification - editors Programming language support - compilers, assemblers, interpreters Program loading and execution - Communications - , ftp, telnet Applications programs

Virtual Machines Operating systems are thought of as consisting of layers. The base layer is the hardware layer. Then comes the operating system kernel. Then come the system programs. The kernel can access the hardware with hardware instructions. It also wraps those instructions in system calls for use by the next higher layer. The application layer can use either method to access the hardware and often does not distinguish the two methods.

Virtual Machines cont’d The virtual machine architecture provides an interface that is identical to the underlying hardware. Each process is provided with a (virtual) copy of the underlying computer. The resources of the physical computer are shared to create the virtual machines. CPU scheduling for a virtual CPU, spooling and a file system for virtual I/O, disk management to supply virtual disks.

Virtual Machines cont’d IBM’s VM operating system is the prime example. Users are given their own virtual machine. They can run any of the operating systems or software packages available on the underlying physical machine. Usually IBM VM users run CMS, a single- user interactive operating system.

Virtual Machines cont’d The virtual machine concept was important for large mainframe installations. However, it is also useful currently to solve system compatibility problems. A virtual Intel machine can be created on a Sun Microsystem machine to allow it to run all MS-DOS software. We also currently have the Java Virtual Machine(JVM).