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.

Slides:



Advertisements
Similar presentations
Operating Systems Components of OS
Advertisements

Interactive lesson about operating system
Operating System Structures
WHAT IS AN OPERATING SYSTEM? An interface between users and hardware - an environment "architecture ” Allows convenient usage; hides the tedious stuff.
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
Course Overview Introduction Computer System Structures
Operating System - Overview Lecture 2. OPERATING SYSTEM STRUCTURES Main componants of an O/S Process Management Main Memory Management File Management.
1: Operating Systems Overview
OPERATING SYSTEM OVERVIEW
ICS Principles of Operating Systems
2: OS Structures 1 Jerry Breecher OPERATING SYSTEMS STRUCTURES.
Figure 1.1 Interaction between applications and the operating system.
Cs238 Lecture 3 Operating System Structures Dr. Alan R. Davis.
Common System Components
1 Operating Systems Ch An Overview. Architecture of Computer Hardware and Systems Software Irv Englander, John Wiley, Bare Bones Computer.
Os31 Chapter 3 Operating-System Structures. os32 Outlines System Components Operating System Services System Calls System Programs System Structure Virtual.
Lecture 1: Introduction CS170 Spring 2015 Chapter 1, the text book. T. Yang.
Using Two Queues. Using Multiple Queues Suspended Processes Processor is faster than I/O so all processes could be waiting for I/O Processor is faster.
Operating Systems.
Process Management A process is a program in execution. It is a unit of work within the system. Program is a passive entity, process is an active entity.
OPERATING SYSTEM OVERVIEW. Contents Basic hardware elements.
LOGO OPERATING SYSTEM Dalia AL-Dabbagh
Operating System Review September 10, 2012Introduction to Computer Security ©2004 Matt Bishop Slide #1-1.
Chapter 3: Operating-System Structures System Components Operating System Services System Calls System Programs System Structure Virtual Machines System.
OS provide a user-friendly environment and manage resources of the computer system. Operating systems manage: –Processes –Memory –Storage –I/O subsystem.
Recall: Three I/O Methods Synchronous: Wait for I/O operation to complete. Asynchronous: Post I/O request and switch to other work. DMA (Direct Memory.
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.
CE Operating Systems Lecture 3 Overview of OS functions and structure.
Computers Operating System Essentials. Operating Systems PROGRAM HARDWARE OPERATING SYSTEM.
Slide 3-1 Copyright © 2004 Pearson Education, Inc. Operating Systems: A Modern Perspective, Chapter 3.
Ihr Logo Operating Systems Internals & Design Principles Fifth Edition William Stallings Chapter 2 (Part II) Operating System Overview.
OSes: 3. OS Structs 1 Operating Systems v Objectives –summarise OSes from several perspectives Certificate Program in Software Development CSE-TC and CSIM,
OS, , Part I Operating - System Structures Department of Computer Engineering, PSUWannarat Suntiamorntut.
1: Operating Systems Overview 1 Jerry Breecher Fall, 2004 CLARK UNIVERSITY CS215 OPERATING SYSTEMS OVERVIEW.
UNIX Unit 1- Architecture of Unix - By Pratima.
BIT213,CISY Operating Systems 1
Chapter 2 Operating System Overview Patricia Roy Manatee Community College, Venice, FL ©2008, Prentice Hall Operating Systems: Internals and Design Principles,
Chapter 2. System Structures
Copyright © Curt Hill Operating Systems An Introductory Overview.
Concepts and Structures. Main difficulties with OS design synchronization ensure a program waiting for an I/O device receives the signal mutual exclusion.
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.
Operating System (Reference : OS[Silberschatz] + Norton 6e book slides)
CSCI/CMPE 4334 Operating Systems Review: Exam 1 1.
1 Chapter 2: Operating-System Structures Services Interface provided to users & programmers –System calls (programmer access) –User level access to system.
Find – used to find files corresponding to a certain criteria find starting_dir matching_criteria [options] Examples: find /usr –name startx find /usr.
OPERATING SYSTEMS STRUCTURES Jerry Breecher 2: Operating System Structures 1.
1.1 Silberschatz, Galvin and Gagne ©2013 Operating System Concepts – 9 th Edition Chapter 1: Introduction What Operating Systems Do √ Computer-System Organization.
Chapter 1: Introduction. 1.2 Silberschatz, Galvin and Gagne ©2005 Operating System Concepts Objectives To provide a grand tour of the major operating.
Chapter 3: Operating-System Structures
Introduction to Operating Systems Concepts
Module 3: Operating-System Structures
Chapter 1: Introduction
Chapter 2: System Structures
Operating System Structure
Introduction to Operating System (OS)
Chapter 1: Introduction
Chapter 3: Windows7 Part 2.
Chapter 3: Operating-System Structures
Chapter 3: Windows7 Part 2.
Chapter 2: Operating-System Structures
Introduction to Operating Systems
OPERATING SYSTEMS STRUCTURES
Chapter-1 Computer is an advanced electronic device that takes raw data as an input from the user and processes it under the control of a set of instructions.
Chapter 2: Operating-System Structures
III. Operating System Structures
Presentation transcript:

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 has resources (CPU time, files) and attributes that must be managed. Management of processes includes:  Process Scheduling (priority, time management,... )  Creation/termination  Block/Unblock (suspension/resumption )  Synchronization  Communication  Deadlock handling  Debugging SYSTEM COMPONENTS

3: OS Structures 2 MAIN MEMORY MANAGEMENT  Allocation/de-allocation for processes, files, I/O.  Maintenance of several processes at a time  Keep track of who's using what memory  Movement of process memory to/from secondary storage. SECONDARY STORAGE MANAGEMENT  Disks, tapes, optical,...  Free space management ( paging/swapping )  Storage allocation ( what data goes where on disk )  Disk scheduling OPERATING SYSTEM STRUCTURES System Components

3: OS Structures 3 DEVICE MANAGEMENT  Buffer caching system  Generic device driver code  Drivers for each device - translate read/write requests into disk position commands. FILE MANAGEMENT Keep track of what's on secondary storage. file == logical entity, disk == physical entity  Map logical file locations onto physical disk locations.  May involve management of a file structure ( directory hierarchy ) ·Does file/directory creation/deletion ·File manipulation ( rename, move, append ) ·File backup OPERATING SYSTEM STRUCTURES System Components

3: OS Structures 4 PROTECTION  Of files, memory, CPU, etc.  Means controlling of access  Depends on the attributes of the file and user COMMUNICATION  Communication system between distributed processors.  Getting information about files/processes/etc. on a remote machine.  Can use either a message passing or a shared memory model. SYSTEM PROGRAMS  Command Interpreters -- Program that accepts control statements (shell, GUI interface, etc.)  Compilers/linkers  Communications (ftp, telnet, etc.) OPERATING SYSTEM STRUCTURES System Components How Do These All Fit Together? In essence, they all provide services for each other.

3: OS Structures 5 Modifying the Operating System program for a particular machine. The goal is to include all the necessary pieces, but not too many extra ones.  Typically a System can support many possible devices, but any one installation has only a few of these possibilities.  Plug and play allows for detection of devices and automatic inclusion of the code (drivers) necessary to drive these devices.  A sysgen is usually a link of many OS routines/modules in order to produce an executable containing the code to run the drivers. OPERATING SYSTEM STRUCTURES System Tailoring

3: OS Structures 6 A System Call is the main way a user program interacts with the Operating System. Figure 3.1 Figure 2.9 OPERATING SYSTEM STRUCTURES System Calls

3: OS Structures 7 HOW A SYSTEM CALL WORKS  Obtain access to system space  Do parameter validation  System resource collection ( locks on structures )  Ask device/system for requested item  Suspend waiting for device  Interrupt makes this thread ready to run  Wrap-up  Return to user FOR EXAMPLE: fprintf | ( Language runtimes prepare buffer ) write-string system call |( Validate and move packet ) | ( Buffer management ) write-block function call OPERATING SYSTEM STRUCTURES System Calls

3: OS Structures 8 A SIMPLE STRUCTURE: Example of MS-DOS. Application Programming Resident System Programming MS-DOS Drivers ROM - BIOS Device Drivers Note how all layers can touch the hardware. Bad News!! OPERATING SYSTEM STRUCTURES How An Operating System Is Put Together

3: OS Structures 9 A LAYERED STRUCTURE: Example of Windows System Services Windows MGR & GDI Windows 2000 Kernel Hardware Abstraction Layer (HAL) IO Manager Graphics Device Drivers VM Manager Security Reference Monitor Process Manager OPERATING SYSTEM STRUCTURES How An Operating System Is Put Together

3: OS Structures 10 In a Virtual Machine - each process "seems" to execute on its own processor with its own memory, devices, etc.  The resources of the physical machine are shared. Virtual devices are sliced out of the physical ones. Virtual disks are subsets of physical ones.  Useful for running different OS simultaneously on the same machine.  Protection is excellent, but no sharing possible.  Virtual privileged instructions are trapped. Virtual User Virtual Machine Monitor Mode Physical User Physical Machine OPERATING SYSTEM STRUCTURES Virtual Machine

3: OS Structures 11 Example of MS-DOS on top of Windows DOS APPLICATION BIOS DRIVERS Windows 2000 Physical User Physical Machine OPERATING SYSTEM STRUCTURES Virtual Machine

3: OS Structures 12 Example of Java Virtual Machine JAVA Applets JAVA VIRTUAL MACHINE Windows 2000 or Solaris The Java Virtual Machine allows Java code to be portable between various hardware and OS platforms. OPERATING SYSTEM STRUCTURES Virtual Machine

3: OS Structures 13 OPERATING SYSTEM STRUCTURES WRAPUP We’ve completed our second overview of an Operating System – this at the level of a high flying plane. We’ve looked at the basic building blocks of an operating system – processes, memory management, file systems, and seen how they all connect together. Now we’ll get into the nitty-gritty, spending considerable time on each of these pieces.