OPERATING SYSTEMS STRUCTURES Jerry Breecher 2: Operating System Structures 1.

Slides:



Advertisements
Similar presentations
Interactive lesson about operating system
Advertisements

Processes Management.
Operating System Structures
WHAT IS AN OPERATING SYSTEM? An interface between users and hardware - an environment "architecture ” Allows convenient usage; hides the tedious stuff.
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
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.
Operating System - Overview Lecture 2. OPERATING SYSTEM STRUCTURES Main componants of an O/S Process Management Main Memory Management File Management.
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.
1: Operating Systems Overview
OPERATING SYSTEM OVERVIEW
2: OS Structures 1 Jerry Breecher OPERATING SYSTEMS STRUCTURES.
Cs238 Lecture 3 Operating System Structures Dr. Alan R. Davis.
Common System Components
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.
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.
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.
Silberschatz, Galvin and Gagne  Operating System Concepts Chapter 3: Operating-System Structures System Components Operating System Services.
CHAPTER 2 OPERATING SYSTEM OVERVIEW 1. Operating System Operating System Definition A program that controls the execution of application programs and.
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.
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.
Silberschatz, Galvin and Gagne  Operating System Concepts Chapter 3: Operating-System Structures System Components Operating System Services.
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.
1: Operating Systems Overview 1 Jerry Breecher Fall, 2004 CLARK UNIVERSITY CS215 OPERATING SYSTEMS OVERVIEW.
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.
Operating System (Reference : OS[Silberschatz] + Norton 6e book slides)
Find – used to find files corresponding to a certain criteria find starting_dir matching_criteria [options] Examples: find /usr –name startx find /usr.
System Components Operating System Services System Calls.
Overview of today’s lecture Major components of an operating system Structure and internal architecture of an operating system Monolithic Vs Micro-kernels.
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.
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
Introduction to Operating Systems Concepts
Module 3: Operating-System Structures
Credits: 3 CIE: 50 Marks SEE:100 Marks Lab: Embedded and IOT Lab
Chapter 1: Introduction
Operating System Structure
Introduction to Operating System (OS)
Cs506 First lecture.
Chapter 1: Introduction
Chapter 3: Operating-System Structures
Chapter 1 Introduction to Operating System Part 5
Basic Concepts Protection: Security:
Operating Systems : Overview
Chapter 2: Operating-System Structures
Introduction to Operating Systems
Operating Systems : Overview
Operating Systems : Overview
OS Components and Structure
OPERATING SYSTEMS STRUCTURES
Chapter 2: Operating-System Structures
III. Operating System Structures
Presentation transcript:

OPERATING SYSTEMS STRUCTURES Jerry Breecher 2: Operating System Structures 1

Operating System Structures 2: Operating System Structures 2 What Is In This Chapter? System Components System Calls How Components Fit Together

Operating System Structures 2: Operating System Structures 3 Program Interface Humans User Programs O.S. Interface O.S. Hardware Interface/ Privileged Instructions Disk/Memory/Screen System Components

Operating System Structures 2: Operating System Structures 4 These are the pieces of the system we’ll be looking at: Process Management Main Memory Management File Management Cache Management I/O System Management Secondary Management Networking Protection System Command-Interpreter System SYSTEM COMPONENTS

Operating System Structures 2: Operating System Structures 5 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. One (or more) threads are the schedulable entities within a process. Management of processes includes:  Thread Scheduling (priority, time management,... )  Creation/termination  Block/Unblock (suspension/resumption )  Synchronization  Communication  Deadlock handling  Debugging PROCESS MANAGEMENT

Operating System Structures 2: Operating System Structures 6 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. FILE MANAGEMENT A file is a collection of related information defined by its creator. Commonly, files represent programs (both source and object forms) and data. The operating system is responsible for the following activities in connections with file management: File creation and deletion. Directory creation and deletion. Support of primitives for manipulating files and directories. Mapping files onto secondary storage. File backup on stable (nonvolatile) storage media.

Operating System Structures 2: Operating System Structures 7 CACHE MANAGEMENT  Remember that memory hierarchy?  How to make the best use of the fast and expensive storage. . Fast and Expensive Slow an Cheap

Operating System Structures 2: Operating System Structures 8 I/O MANAGEMENT  Buffer caching system  part of caching management  Generic device driver code  Drivers for each device - translate read/write requests into disk position commands. SECONDARY STORAGE MANAGEMENT  Disks, tapes, optical,...  Free space management ( paging/swapping )  Storage allocation ( what data goes where on disk )  Disk scheduling

Operating System Structures 2: Operating System Structures 9 NETWORKING  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. PROTECTION  Of files, memory, CPU, etc.  Means controlling of access  Depends on the attributes of the file and user SYSTEM PROGRAMS  Command Interpreters -- Program that accepts control statements (shell, GUI interface, etc.)  Compilers/linkers  Communications (ftp, telnet, etc.) How Do These All Fit Together? In essence, they all provide services for each other.

Operating System Structures 2: Operating System Structures 10 A System Call is the main way a user program interacts with the Operating System. System Calls

Operating System Structures 2: Operating System Structures 11 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 thread ready to run  Wrap-up  Return to user There are 11 (or more) steps in making the linux system call read (fd, buffer, nbytes) System Calls

Operating System Structures 2: Operating System Structures 12 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!! How An Operating System Is Put Together

2: Operating System Structures 13 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

2: Operating System Structures 14 A LAYERED STRUCTURE:. Operating System Structures How An Operating System Is Put Together