Introduction to Operating Systems What is an operating system? Examples How do many programs run at the same time, with one processor?

Slides:



Advertisements
Similar presentations
Threads, SMP, and Microkernels Chapter 4. Process Resource ownership - process is allocated a virtual address space to hold the process image Scheduling/execution-
Advertisements

1 OS Structure, Processes & Process Management. 2 Recap OS functions  Coordinator  Protection  Communication  Resource management  Service provider.
Figure 2.8 Compiler phases Compiling. Figure 2.9 Object module Linking.
MCT260-Operating Systems I Operating Systems I Introduction to Operating Systems.
OS Fall ’ 02 Introduction Operating Systems Fall 2002.
IT Systems Operating System EN230-1 Justin Champion C208 –
Introduction to Operating Systems – Windows process and thread management In this lecture we will cover Threads and processes in Windows Thread priority.
Review: Operating System Manages all system resources ALU Memory I/O Files Objectives: Security Efficiency Convenience.
Understanding Operating Systems 1 Overview Introduction Operating System Components Machine Hardware Types of Operating Systems Brief History of Operating.
OS Spring’03 Introduction Operating Systems Spring 2003.
Operating Systems CS208. What is Operating System? It is a program. It is the first piece of software to run after the system boots. It coordinates the.
Operating system Part three Introduction to computer, 2nd semester, 2010/2011 Mr.Nael Aburas Faculty of Information.
Copyright Arshi Khan1 System Programming Instructor Arshi Khan.
Operating Systems.
Chapter 51 Threads Chapter 5. 2 Process Characteristics  Concept of Process has two facets.  A Process is: A Unit of resource ownership:  a virtual.
Week 6 Operating Systems.
Chapter 3 Operating Systems Introduction to CS 1 st Semester, 2015 Sanghyun Park.
Operating systems CHAPTER 7.
Operating System A program that controls the execution of application programs An interface between applications and hardware 1.
CS 0004 –Lecture 1 Wednesday, Jan 5 th, 2011 Roxana Gheorghiu.
Operating Systems.
Copyright © 2012 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 3: Operating Systems Computer Science: An Overview Eleventh Edition.
Silberschatz, Galvin and Gagne  2002 Modified for CSCI 399, Royden, Operating System Concepts Operating Systems Lecture 1 Introduction Read:
CS 1308 Computer Literacy and the Internet. Introduction  Von Neumann computer  “Naked machine”  Hardware without any helpful user-oriented features.
Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 3: Operating Systems Computer Science: An Overview Tenth Edition.
Introduction to Operating Systems Chapter 1. cs431 -cotter2 Lecture Objectives Understand the relationship between computing hardware, operating system,
Fall 2000M.B. Ibáñez Lecture 01 Introduction What is an Operating System? The Evolution of Operating Systems Course Outline.
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.
OPERATING SYSTEMS Goals of the course Definitions of operating systems Operating system goals What is not an operating system Computer architecture O/S.
1 CS/COE0447 Computer Organization & Assembly Language Chapter 5 part 4 Exceptions.
The Functions of Operating Systems Interrupts. Learning Objectives Explain how interrupts are used to obtain processor time. Explain how processing of.
Lecture 3 Process Concepts. What is a Process? A process is the dynamic execution context of an executing program. Several processes may run concurrently,
Operating Systems. Definition An operating system is a collection of programs that manage the resources of the system, and provides a interface between.
CE Operating Systems Lecture 11 Windows – Object manager and process management.
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.
Operating systems and processors and storage Revision Storage media Microprocessors Operating systems.
Operating Systems David Goldschmidt, Ph.D. Computer Science The College of Saint Rose CIS 432.
Operating Systems Lecture November 2015© Copyright Virtual University of Pakistan 2 Agenda for Today Review of previous lecture Hardware (I/O, memory,
INFORMATION SYSTEM-SOFTWARE Topic: OPERATING SYSTEM CONCEPTS.
Chapter 2 Processes and Threads Introduction 2.2 Processes A Process is the execution of a Program More specifically… – A process is a program.
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.
Concurrency, Processes, and System calls Benefits and issues of concurrency The basic concept of process System calls.
Computer Organization Instruction Set Architecture (ISA) Instruction Set Architecture (ISA), or simply Architecture, of a computer is the.
Introduction to Operating Systems Prepared by: Dhason Operating Systems.
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.
Time Management.  Time management is concerned with OS facilities and services which measure real time.  These services include:  Keeping track of.
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.
Copyright © Curt Hill More on Operating Systems Continuation of Introduction.
© Janice Regan, CMPT 300, May CMPT 300 Introduction to Operating Systems Operating Systems Overview: Using Hardware.
An operating system for a large-scale computer that is used by many people at once is a very complex system. It contains many millions of lines of instructions.
1.3 Operating system services An operating system provide services to programs and to the users of the program. It provides an environment for the execution.
Advanced Operating Systems CS6025 Spring 2016 Processes and Threads (Chapter 2)
CT101: Computing Systems Introduction to Operating Systems.
1 OPERATING SYSTEMS. 2 CONTENTS 1.What is an Operating System? 2.OS Functions 3.OS Services 4.Structure of OS 5.Evolution of OS.
Introduction to Operating Systems Concepts
Introduction to Operating System (OS)
Chapter 1: Introduction
OPERATING SYSTEMS.
Shell & Kernel Concepts in Operating System
Chapter 1: Intro (excerpt)
Chapter 15, Exploring the Digital Domain
Lecture Topics: 11/1 General Operating System Concepts Processes
Threads Chapter 4.
Interrupt handling Explain how interrupts are used to obtain processor time and how processing of interrupted jobs may later be resumed, (typical.
Operating Systems: A Modern Perspective, Chapter 3
The Main Features of Operating Systems
Chapter 2 Operating System Overview
Presentation transcript:

Introduction to Operating Systems What is an operating system? Examples How do many programs run at the same time, with one processor?

What is an operating system? A short definition of an operating system: An operating system is a collection of system programs that manage the resources of a computer and control the running of user programs.

Why do we need an operating system? An operating system from a programmer’s point of view is a program that adds a variety of new instructions and features, beyond those of the instruction set. An operating system is implemented largely in software.

Examples UNIX/Linux Windows 98 Windows NT Windows XP BEOS DOS

Kernel – Central part of the operating system. – All hardware requests go through the kernel as system calls Shell – The interfaces for the applications programs and users, with the operating system.

Interrupts Where the normal running of a program is interrupted by an event. Generated: – By computers hardware e.g. key press – Within the CPU by unexpected event, e.g divide-by- zero. – By external events, e.g. from interface cards – By software to perform pre-defined routines in ROM or RAM, e.g. routines in BIOS or user defined routines in RAM- software interrupts.

Process manager deals with – hardware/software interrupts. – Processor errors – Scheduling tasks – Communication between tasks

Memory Management – Allocate memory – Ensures processes (see next week’s lecture) stay memory boundaries – Controlling virtual memory

I/0 System – Communicates with peripherals and hardware components – Co-ordinates i/o systems such as interrupts and direct memory access

Files system – Organises and accesses files – Maintains on a multi-user system user file quotas – Controls file/record access

Application Program Interface – Provides systems services for applications – An interface between the applications and the operating system.

User interface – Allows the user access to programs – Allows the user to view and change system settings. – A consistent interface between the user and the operating system.

Single user/task system Simplest system Single machine running one application at a time. Has it’s own resources (e.g. printer).

Multiprogramming/Multi-tasking System How do many programs run at the same time, with one processor? Short answer: They do not! They just appear to by running one program at a time, but for a short period of time.

Most modern operating systems have the ability to execute several programs at once, although there is usually only one processor in the system. This is multiprogramming and is made possible by rapidly switching the processor between programs. Interrupting the processor periodically, gives the programs control of the processor for a short period.

This switching is triggered by a piece of hardware called the interval timer, which generates an interrupt (a time-out interrupt) when the programmed period has elapsed. The interrupt handler, then saves the context of the processor. The context is the contents of registers that may be overwritten by other programs. Control is passed over to the dispatcher/low-level scheduler.

The dispatcher searches a set of potentially 'runnable' program using a scheduling algorithm to select a suitable program to run next. The context of the processor, which existed when that program last ran, is restored to the registers.