OPERATING SYSTEM OVERVIEW. Contents Basic hardware elements.

Slides:



Advertisements
Similar presentations
Operating Systems Components of OS
Advertisements

Operating Systems (CSCI2413) Lecture 2 Overview phones off (please)
Processes Management.
Operating System Structures
More on Processes Chapter 3. Process image _the physical representation of a process in the OS _an address space consisting of code, data and stack segments.
Chap 2 System Structures.
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.
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.
Introduction to Kernel
2: OS Structures 1 Jerry Breecher OPERATING SYSTEMS STRUCTURES.
Chapter 7 Interupts DMA Channels Context Switching.
Advanced OS Chapter 3p2 Sections 3.4 / 3.5. Interrupts These enable software to respond to signals from hardware. The set of instructions to be executed.
1/26/2004CSCI 315 Operating Systems Design1 Operating System Structures Notice: The slides for this lecture have been largely based on those accompanying.
Midterm Tuesday October 23 Covers Chapters 3 through 6 - Buses, Clocks, Timing, Edge Triggering, Level Triggering - Cache Memory Systems - Internal Memory.
Cs238 Lecture 3 Operating System Structures Dr. Alan R. Davis.
Common System Components
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.
What do operating systems do? manage processes manage memory and computer resources provide security features execute user programs make solving user.
System Calls 1.
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.
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.
Silberschatz, Galvin and Gagne  Operating System Concepts Chapter 3: Operating-System Structures System Components Operating System Services.
Lecture 3 Process Concepts. What is a Process? A process is the dynamic execution context of an executing program. Several processes may run concurrently,
Silberschatz and Galvin  Operating System Concepts Module 3: Operating-System Structures System Components Operating System Services System Calls.
Hardware process When the computer is powered up, it begins to execute fetch-execute cycle for the program that is stored in memory at the boot strap entry.
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.
LINUX System : Lecture 7 Bong-Soo Sohn Lecture notes acknowledgement : The design of UNIX Operating System.
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
Operating System Structure A key concept of operating systems is multiprogramming. –Goal of multiprogramming is to efficiently utilize all of the computing.
We will focus on operating system concepts What does it do? How is it implemented? Apply to Windows, Linux, Unix, Solaris, Mac OS X. Will discuss differences.
1.4 Hardware Review. CPU  Fetch-decode-execute cycle 1. Fetch 2. Bump PC 3. Decode 4. Determine operand addr (if necessary) 5. Fetch operand from memory.
Operating Systems 1 K. Salah Module 1.2: Fundamental Concepts Interrupts System Calls.
UNIX Unit 1- Architecture of Unix - By Pratima.
1 CS.217 Operating System By Ajarn..Sutapart Sappajak,METC,MSIT Chapter 3 Operating-System Structures Slide 1 Chapter 3 Operating-System Structures.
Hardware process When the computer is powered up, it begins to execute fetch-execute cycle for the program that is stored in memory at the boot strap entry.
What is a Process ? A program in execution.
Silberschatz, Galvin, and Gagne  Applied Operating System Concepts Module 3: Operating-System Structures System Components Operating System Services.
 PROCESS MANAGEMENT  A process is a program in execution: (A program is passive, a process active.)  A process has resources (CPU time, files) and.
CSCI/CMPE 4334 Operating Systems Review: Exam 1 1.
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.
Introduction to Operating Systems Concepts
Module 3: Operating-System Structures
Introduction to Kernel
Avani R.Vasant V.V.P. Engineering College
Protection of System Resources
Chapter 1: Introduction
CS 3305 System Calls Lecture 7.
Operating System Structure
Chapter 3: Operating-System Structures
Chapter 1 Introduction to Operating System Part 5
Lecture Topics: 11/1 General Operating System Concepts Processes
Chapter 2: Operating-System Structures
Operating Systems Lecture 3.
Introduction to Operating Systems
LINUX System : Lecture 7 Lecture notes acknowledgement : The design of UNIX Operating System.
Outline Operating System Organization Operating System Examples
OPERATING SYSTEMS STRUCTURES
Chapter 2: Operating-System Structures
Presentation transcript:

OPERATING SYSTEM OVERVIEW

Contents Basic hardware elements

  Most I/O devices are much slower than the processor Interrupts   Interrupt request signal   Active waiting cycle (polling)

  An interrupt cycle is added to the instruction cycle (fecth and execute).   The processor checks to see if an interrupt has occured (interrupt signal) Interrupt mechanism

  interrupt handler   interrupt vector Interrupt mechanism

  CPU saves PS and PC (push) into the control stack   CPU loads into PC and PS the corresponding values from the interrupt vector Interrupt processing

  iret   interrupt handler execution Interrupt processing

Interrupt enable/disable bit (PS register)   Hardware priority   STI (Set Interrupt) CLI (Clear Interrupt) Interrupt mechanism

main memory i+1 PS inth 1OO i i O iret 1OOO 12OO 12O1 main memory inthinth progprog interruptinterrupt interrupt vector Interrupt processing

PS prog 12O PS PC SP stack main memory OO CPU completes execution of the current instruction Interrupt processing

interrupt signal has been accepted PS inth 1OO 3822 PS PC SP stack main memory OO 12O1 PS prog Interrupt processing

PS inth PS PC SP stack main memory OO 12O1 PS prog iret execution Interrupt processing

stack main memory OO PS prog 12O PS PC SP iret completed Interrupt processing

O.S.Components Contents

  Process Management O.S. COMPONENTS   Main-Memory Management   Secondary-Memory Management

  File Management   I/O-System Management O.S. COMPONENTS

  Creating and deleting processes   Suspending and resuming processes   Provide mechanisms for process interaction Process management

Keeping track of which parts of memory are currently being used and by whom Main memory management

Deciding which processes are to be loaded when memory becomes available Main memory management

Allocating and deallocating memory space as needed Main memory management

Secondary memory management   Free space management   Storage allocation   Disk scheduling

I/O SYSTEM MANAGEMENT The I/O subsystem consists of   A memory-management component that includes buffering and spooling

  A general device driver interface   Drivers for specific hardware devices   A general device driver interface   Drivers for specific hardware devices I/O SYSTEM MANAGEMENT The I/O subsystem consists of I/O SYSTEM MANAGEMENT The I/O subsystem consists of

File management   Creating and deleting files and directories   Supporting primitives for manipulating file and directory

  Mapping files onto storage   Backing up files on stable storage media File management

Protection systems   Mechanism for controlling the access of processes to system resources

  The mechanism must provide means for specifying the controls to be imposed and means for enforcement Protection systems

  The interface between users and O.S.   A program that reads and interpretes control statements   The interface between users and O.S.   A program that reads and interpretes control statements Comand-Interpreter System

  Its main function: to get next command statement and execute it (shell) Comand-Interpreter System

System calls Contents

Processes communicate with the O.S. and request services to it by making system calls System Calls

System calls provide the interface between any process and O.S. System Calls

  Process control Examples of System Call   Communications   Information management   Device manipulation   File manipulation

Corresponding to each system call there is a library procedure Corresponding to each system call there is a library procedure

count= read (file, buffer, nbytes) count returns the number of bytes actually read C program Example: read system call

Library read procedure operating system system call READ INT return from INT register x x  call parameters load x system call READ 2 3 1

  Puts the parameters of the system call in machine registers The library procedure   The control is returned to the caller by returning the status code as a result   Issues a INT instruction to start the O.S.

  directly via registers   in a memory block whose address is passed as a parameter in a registry   into the stack (push, pop)   directly via registers   in a memory block whose address is passed as a parameter in a registry   into the stack (push, pop) Methods to pass parameters to operating system

hardware (CPU, memory, disks, terminals, …) UNIX O.S. (process management, memory management, file system, I/O,...) standard library (open, close, read, write,..) utility programs (shell, compiler, …) users user mode kernel mode user int. library interface system call interf.

Dual mode of operations user mode   Hardware control does not allow the execution of privileged instructions   Used for normal execution of user programs

 Used for the execution of O.S. functions as required by system calls supervisor mode (kernel mode)  All instructions can be executed Dual mode of operations