Chapter 13 The Function of Operating Systems

Slides:



Advertisements
Similar presentations
Computer Architecture
Advertisements

Chapter 2 Operating System Overview Operating Systems: Internals and Design Principles, 6/E William Stallings.
A look at interrupts What are interrupts and why are they needed.
A look at interrupts What are interrupts and why are they needed in an embedded system? Equally as important – how are these ideas handled on the Blackfin.
Review: Operating System Manages all system resources ALU Memory I/O Files Objectives: Security Efficiency Convenience.
1 Computer System Overview OS-1 Course AA
Chapter 1 and 2 Computer System and Operating System Overview
A look at interrupts What are interrupts and why are they needed.
Computer System Structures memory memory controller disk controller disk controller printer controller printer controller tape-drive controller tape-drive.
Contact Information Office: 225 Neville Hall Office Hours: Monday and Wednesday 12:00-1:00 and by appointment.
Chapter 1 Computer System Overview Patricia Roy Manatee Community College, Venice, FL ©2008, Prentice Hall Operating Systems: Internals and Design Principles,
The Functions of Operating Systems Interrupts. Learning Objectives Explain how interrupts are used to obtain processor time. Explain how processing of.
Tami Meredith, Ph.D. CSCI  Devices need CPU access  E.g., NIC has a full buffer it needs to empty  These device needs are often asynchronous.
Operating System Principles And Multitasking
Computer Structure & Architecture 7b - CPU & Buses.
Computer Studies/ICT SS2
Processor Architecture
1 Software. 2 What is software ► Software is the term that we use for all the programs and data on a computer system. ► Two types of software ► Program.
AS Computing Hardware. Buffers and Interrupts A buffer is an area of memory used for holding data during input/output transfers to and from disk.
CE Operating Systems Lecture 2 Low level hardware support for operating systems.
Lecture 1: Review of Computer Organization
Question What technology differentiates the different stages a computer had gone through from generation 1 to present?
1 Process Description and Control Chapter 3. 2 Process A program in execution An instance of a program running on a computer The entity that can be assigned.
Transferring Data – Primary Memory to Secondary Storage F451 - AS Computing.
Interrupts and Exception Handling. Execution We are quite aware of the Fetch, Execute process of the control unit of the CPU –Fetch and instruction as.
© Janice Regan, CMPT 300, May CMPT 300 Introduction to Operating Systems Operating Systems Overview: Using Hardware.
Embedded Real-Time Systems Processing interrupts Lecturer Department University.
9691 Computing Paper 3 Section 3.1 The functions of Operating Systems.
Functions of Operating Systems V1.0 (22/10/2005).
COMPUTER SYSTEM FUNDAMENTAL Genetic Computer School THE PROCESSING UNIT LESSON 2.
CSCE451/851 Introduction to Operating Systems
Introduction to Operating Systems Concepts
Applied Operating System Concepts
Chapter 2 Memory and process management
MICROPROCESSOR BASED SYSTEM DESIGN
Introduction.
Component 2 6G, H, I, J, K.
Lesson Objectives Aims Key Words Interrupt, Buffer, Priority, Stack
Advanced OS Concepts (For OCR)
Operating Systems (CS 340 D)
OPERATING SYSTEMS CS3502 Fall 2017
Computer System Overview
Intro to Processes CSSE 332 Operating Systems
Welcome to OS Class!.
Operating Systems (CS 340 D)
Computer System Overview
Chapter 13 The Function of Operating Systems
Processor Fundamentals
Operating Systems Chapter 5: Input/Output Management
Chapter 8: Memory management
Outline Module 1 and 2 dealt with processes, scheduling and synchronization Next two modules will deal with memory and storage Processes require data to.
Process Description and Control
BIC 10503: COMPUTER ARCHITECTURE
COMPUTER PERIPHERALS AND INTERFACES
Chapter 10 And, Finally... The Stack
Components of a CPU AS Computing - F451.
Operating Systems Tasks 17/02/2019.
Ainsley Smith Tel: Ex
CSE 451: Operating Systems Autumn 2003 Lecture 2 Architectural Support for Operating Systems Hank Levy 596 Allen Center 1.
CSE 451: Operating Systems Autumn 2001 Lecture 2 Architectural Support for Operating Systems Brian Bershad 310 Sieg Hall 1.
Computer System Overview
Chapter 1 Computer System Overview
CSE 451: Operating Systems Winter 2003 Lecture 2 Architectural Support for Operating Systems Hank Levy 412 Sieg Hall 1.
LO2 – Understand Computer Software
Year 10 Computer Science Hardware - CPU and RAM.
Scheduling Computing Theory – F453.
Function of Operating Systems
Chapter 3: Process Management
Necessary Background for OS
Chapter 13: I/O Systems “The two main jobs of a computer are I/O and [CPU] processing. In many cases, the main job is I/O, and the [CPU] processing is.
Presentation transcript:

Chapter 13 The Function of Operating Systems F453 – Computing Theory Chapter 13 The Function of Operating Systems

Features of operating systems H I S U Hardware resources (Provide and Manage) – such as the management of memory and the jobs passing through it Interface – provide an interface between the user and machine Interface – provide an interface between applications software and the machine. (software and hardware) Security – provide it for the data on the system particularly when there are lots of users. Utility Software– provide this so that maintenance can be done!

INTERRUPT HANDLING

Interrupt Handling Remember our friend the Processor? (brain of the computer) It normally functions SERIALLY – that is an instruction is collected, acted upon, next instruction… This continues while the processor is operating or the set of instructions is completed.

Interrupt Handling That’s all well and good – if things run smoothly, but often you are going to get something causing the processor to stop what it is doing and do something else It is the INTERRUPT that asks for this to happen….

Types of Interrupt  Hardware interrupt – (the buffer that is being used to transfer data from primary memory to secondary storage has been emptied and needs to be refilled so that data transfer can continue) Software interrupts (such as the interrupt caused to the flow of a program by a call to an external device) EACH INTERRUPT IS GIVEN A PRIORITY – if two occur you need to know which is more important.

Example of most important interrupt An interruption to power supply! (this is given the highest priority of all!)

So what happens when an interrupt occurs – What’s the process? Fetch Instruction Decode Operation Execute Check for Interrupts If none present move to Fetch If present acknowledge interrupt Carry out interrupt task

Interrupt - process Interrupt is stored with all other jobs that the processor has to do (including current running task) Interrupt given a priority, as is the current job, according to importance All jobs are stored – but also stored in order of priority! Processor finishes an instruction – it checks list for stuff to be done As long as job it is doing is at the top of the list –It will continue with next instruction, but if an interrupt has gone to top of list, the processor will STOP the job its doing!

It can’t just stop It’s like when you’ve been working all night on an essay. In the morning there’s a fire….you need to rush out of the house. An important interrupt no doubt but… Will you press save? *maybe not!

Processor does save when it is interrupted It can’t waste all the processing its done So it stores the contents of all the special registers so that when it goes back to the job it can load the special register with these contents again and carry on from where it left off. These values are stored in a STACK (we’ll do more on these soon)

So special registers emptied The new job then (the interrupt) can be loaded into the special registers and proccessed until it is completeed.

Scheduling, Job Queues and Priorities Life requires Schedules, Priorities and Queues. Without them, things would not function.

Scheduling Take the exampe of a multi operating system….there are a number of jobs that must be in the memory in order of the OS to switch from one job to the other This in turns means the OS must have a set of rules that it can use in order to determine the order in which the jobs should be handled The use of this set of rules is known as job scheduling

So what’s scheduling? The use of a set of rules to determine the order that jobs should be handled is called Scheduling

What’s scheduling????? Set of rules These set of rules determine the order in which jobs should be handled. Use of these rules is called job scheduling!

More about the rules… The rules used will be largely decided by the importance applied to the different jobs to be carried out This concept of “importance” implies that the jobs can be arranged into some sort of order and the OS can then follow this order of jobs HOW IS THE ORDER OF JOBS DECIDED!?!?!??

How do you order jobs in your brain? Jobs that require physical strength – (interfacing with physical external objects…?) Jobs that require emotional strength (things that require processing and brain powre)

Interrupt Priority