Operating System and Application. IT 3123 Hardware and Software Concepts. Operating System Basic Services

Similar documents
CHAPTER 15: Operating Systems: An Overview

Operating Systems 4 th Class

Chapter 2: OS Overview

Multiprogramming. IT 3123 Hardware and Software Concepts. Program Dispatching. Multiprogramming. Program Dispatching. Program Dispatching

Chapter 3. Operating Systems

Computer-System Architecture

Lesson Objectives. To provide a grand tour of the major operating systems components To provide coverage of basic computer system organization

Operating Systems. Lecture 03. February 11, 2013

Chapter 3: Operating Systems

OPERATING SYSTEM SERVICES

Review from last time. CS 537 Lecture 3 OS Structure. OS structure. What you should learn from this lecture

Introduction to Operating Systems. Perspective of the Computer. System Software. Indiana University Chen Yu

CS161: Operating Systems

Chapter 3: Operating-System Structures. System Components Operating System Services System Calls System Programs System Structure Virtual Machines

Introduction. What is an Operating System?

Operating Systems OBJECTIVES 7.1 DEFINITION. Chapter 7. Note:

Overview and History of Operating Systems

This tutorial will take you through step by step approach while learning Operating System concepts.

Operating System Tutorial

Chapter 3 Operating-System Structures

Outline: Operating Systems

Types Of Operating Systems

Chapter 2 System Structures

How To Understand The History Of An Operating System

Chapter 2 Basic Structure of Computers. Jin-Fu Li Department of Electrical Engineering National Central University Jungli, Taiwan

Chapter 11: Input/Output Organisation. Lesson 06: Programmed IO

Operating System Organization. Purpose of an OS

Traditional IBM Mainframe Operating Principles

System Structures. Services Interface Structure

Objectives. Chapter 2: Operating-System Structures. Operating System Services (Cont.) Operating System Services. Operating System Services (Cont.

Operating Systems Concepts: Chapter 7: Scheduling Strategies

Process Scheduling CS 241. February 24, Copyright University of Illinois CS 241 Staff

Computers: Tools for an Information Age

Chapter 2: Computer-System Structures. Computer System Operation Storage Structure Storage Hierarchy Hardware Protection General System Architecture

Components of a Computer System

Virtualization. Pradipta De

Deciding which process to run. (Deciding which thread to run) Deciding how long the chosen process can run

Chapter 1: Introduction. What is an Operating System?

Operating system Dr. Shroouq J.

Lecture 1 Operating System Overview

Scheduling. Scheduling. Scheduling levels. Decision to switch the running process can take place under the following circumstances:

Kernel. What is an Operating System? Systems Software and Application Software. The core of an OS is called kernel, which. Module 9: Operating Systems

Example of Standard API

Page 1 of 5. IS 335: Information Technology in Business Lecture Outline Operating Systems

1. Computer System Structure and Components

ELEC 377. Operating Systems. Week 1 Class 3

Technical Properties. Mobile Operating Systems. Overview Concepts of Mobile. Functions Processes. Lecture 11. Memory Management.

VMWare Workstation 11 Installation MICROSOFT WINDOWS SERVER 2008 R2 STANDARD ENTERPRISE ED.

General Objectives: On completion of this course the student should be able to:

CS 3530 Operating Systems. L02 OS Intro Part 1 Dr. Ken Hoganson

Why Computers Are Getting Slower (and what we can do about it) Rik van Riel Sr. Software Engineer, Red Hat

Operating Systems: Basic Concepts and History

CS420: Operating Systems OS Services & System Calls

Operating System Fundamentals Robert Power & Robert Ford

Chapter 1 FUNDAMENTALS OF OPERATING SYSTEM

OPERATING SYSTEMS STRUCTURES

Operating Systems. Notice that, before you can run programs that you write in JavaScript, you need to jump through a few hoops first

Fastboot Techniques for x86 Architectures. Marcus Bortel Field Application Engineer QNX Software Systems

Operating System Components

S7 for Windows S7-300/400

Chapter 1 Computer System Overview

Operating System Components and Services

OPERATING SYSTEMS SCHEDULING

OPERATING SYSTEM OVERVIEW

Software systems and issues

Chapter 5: System Software: Operating Systems and Utility Programs

Windows8 Internals, Sixth Edition, Part 1

LECTURE-7. Introduction to DOS. Introduction to UNIX/LINUX OS. Introduction to Windows. Topics:

CPS221 Lecture: Operating System Structure; Virtual Machines

Components of a Computing System. What is an Operating System? Resources. Abstract Resources. Goals of an OS. System Software

Linux Process Scheduling Policy

Chapter 14 MS-DOS Operating System

OpenBSD s New Suspend and Resume Framework

Process Description and Control william stallings, maurizio pizzonia - sistemi operativi

Processes and Non-Preemptive Scheduling. Otto J. Anshus

Understanding Linux on z/vm Steal Time

Thomas Fahrig Senior Developer Hypervisor Team. Hypervisor Architecture Terminology Goals Basics Details

Programming A PLC. Standard Instructions

find model parameters, to validate models, and to develop inputs for models. c 1994 Raj Jain 7.1

Operating Systems Overview

Exception and Interrupt Handling in ARM

A Comparative Study of CPU Scheduling Algorithms

How To Understand And Understand An Operating System In C Programming

Road Map. Scheduling. Types of Scheduling. Scheduling. CPU Scheduling. Job Scheduling. Dickinson College Computer Science 354 Spring 2010.

Multiprocessor Scheduling and Scheduling in Linux Kernel 2.6

CPU Scheduling. Core Definitions

Chapter 3: Operating-System Structures. Common System Components

Software: Systems and Application Software

OPERATING SYSTEM INDEX

3 - Introduction to Operating Systems

International Engineering Journal For Research & Development

Virtualization for Cloud Computing

DEPARTMENT OF COMPUTER SCIENCE & ENGINEERING Question Bank Subject Name: EC Microprocessor & Microcontroller Year/Sem : II/IV

Operating Systems, 6 th ed. Test Bank Chapter 7

Local Area Networks: Software and Support Systems

The Microsoft Windows Hypervisor High Level Architecture

Chap-02, Hardware and Software. Hardware Model

Input / Output and I/O Strategies

Overview of Operating Systems Instructor: Dr. Tongping Liu

theguard! ApplicationManager System Windows Data Collector

Transcription:

IT 3123 and Software Concepts Notice: This session is being recorded. Operating Systems I March 17 Copyright 2005 by Bob Brown Operating System and Application Application program: solves specific problems or performs specific functions Payroll Word processing Web server Operating system: supports the application by providing user interfaces, hardware interfaces, and resource management The hardware and the OS together define a virtual machine. Bare Bones Computer System Integrated Computer Environment Does not load instructions into main memory No user interface except for I/O routines provided with executing program Is idle (or busy waiting) when waiting for user input No facility to store, retrieve, or manipulate files No ability to control peripheral devices Can run only one program at a time Operating System Basic Act as an interface between the user and the system Accept commands and requests from a user and a user s program (interface between application program and hardware.) Manage, load, and execute programs Manage hardware resources of the computer Additional Provides a means of starting the computer Bootstrapping or booting the computer (also called Initial Program Load, or IPL) Provides file system services Handles all interrupt processing Provides I/O support services 1

Additional Provides interfaces for the user s programs Provides network services Provides tools and services for concurrent processing Required for Concurrent Processing Allocates resources such as memory, CPU time, and I/O devices to programs Protects users and programs from each other (with help from the hardware) Provides for inter-program communication Provides feedback to the system administrators to permit performance optimization of the computer system Memory-Resident OS Parts Memory Resident: always loaded in memory Commonly called the kernel Contains essential services required by other parts of the operating system and applications. Typically responsible for managing memory management, processes and tasks, and secondary storage Non Memory-Resident Applications Infrequently used programs, software tools, and commands These are loaded by the kernel as needed Thin Clients Diskless workstations or thin clients Programs, including the OS, are located on another computer on the network Programs run in the memory of the diskless workstation Program loading takes place over the network. Operating System User Command Interface File Core I/O Application Network Computer Network 2

OS Degree of Activity Interactive Also known as conversational systems Batch processing User submits programs or jobs for processing Little to no user interaction Event driven Interrupts or service requests and the OS A hardware platform may support a variety of operating systems An operating system may work on a variety of platforms and the OS A standard operating system that works on different hardware platforms: Provides program and file portability Enables user efficiency through recognizable interface Is (mostly) implemented through a systems programming language like C or C++ as opposed to assembly language Single Job Processing Only one program is loaded into memory and executed Example: MS-DOS Memory resident components Command interface shell I/O routines, including BIOS File management system User program in control OS Regains Control When program is finished control is transferred back to the command interpreter If the user s program requests I/O The user wishes to stop the program execution via a keyboard interrupt System malfunctions Single Job Processing Disadvantages Lack of security Programs can overwrite the resident OS Programs can write directly to I/O devices System provides minimum memory management and no scheduling CPU is often idle awaiting the completion of I/O operations 3

Concurrent Operations Multitasking (multiprogramming) vs. multiprocessing which implies multiple CPUs Concurrent processing vs. simultaneous processing Achieving Multitasking While one program is waiting for I/O to take place, another program is using the CPU to execute instructions. Interrupts notify CPU and OS when I/O is complete. Time-slicing: The CPU may be switched rapidly back and forth between different programs (Clock interrupts) Dispatching is the process of selecting which program to run at any given instant Sharing the CPU during I/O Breaks I/O represents a large percentage of a typical program s execution Time-sharing the CPU Time slicing Program Dispatching Running CPU Available I/O Request Time Expired Waiting Ready I/O Complete (This is a state transition diagram. ) Logical Equivalence of and Software Specialized hardware can be built to perform any function that can be implemented in software Software can be written to perform any function that hardware can perform. But, there has to be some hardware to run the software. 4

What the OS Needs from the Privileged instructions Protected memory A timer (clock) that can generate interrupts. Privileged Instructions Some instructions (like I/O) instructions are reserved for the operating system. A mode bit in the CPU s status word is set when the OS is in control Privileged instructions work when the mode bit is set and generate an illegal instruction interrupt when it is not. Protected Memory If any program can write to any memory location, a malicious or defective user program can damage OS code or data. Two ways to protect memory: Memory keys. These are bits like a mode bit attached to blocks of memory Virtual address spaces A Timer Generates Interrupts The OS gets control whenever an application program requests I/O services What if an application program never requests I/O services? Part of the hardware is a timer. It generates an interrupt at (short) intervals. The OS gets control to handle the interrupt. Can cut off a long-running program. Questions 5