Lecture 11: Operating System Services. What is an Operating System? An operating system is an event driven program which acts as an interface between.

Slides:



Advertisements
Similar presentations
Operating Systems Components of OS
Advertisements

Operating-System Structures
CSC 360- Instructor: K. Wu Overview of Operating Systems.
Chapter 2 Operating System Overview Operating Systems: Internals and Design Principles, 6/E William Stallings.
Input and Output CS 215 Lecture #20.
WHAT IS AN OPERATING SYSTEM? An interface between users and hardware - an environment "architecture ” Allows convenient usage; hides the tedious stuff.
CS 345 Computer System Overview
CMPT 300: Operating Systems I Dr. Mohamed Hefeeda
Lecture 1: History of Operating System
Operating System (O.S.) Objectives & Functions
1 School of Computing Science Simon Fraser University CMPT 300: Operating Systems I Dr. Mohamed Hefeeda.
Figure 1.1 Interaction between applications and the operating system.
Cs238 Lecture 3 Operating System Structures Dr. Alan R. Davis.
Computer System Structures memory memory controller disk controller disk controller printer controller printer controller tape-drive controller tape-drive.
A. Frank - P. Weisberg Operating Systems Evolution of Operating Systems.
1 What is an operating system? CSC330Patricia Van Hise.
What do operating systems do? manage processes manage memory and computer resources provide security features execute user programs make solving user.
Operating System Overview
CHAPTER 2 OPERATING SYSTEM OVERVIEW 1. Operating System Operating System Definition A program that controls the execution of application programs and.
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.
 What is OS? What is OS?  What OS does? What OS does?  Structure of Operating System: Structure of Operating System:  Evolution of OS Evolution of.
Operating Systems.
Operating system Structure and Operation by Dr. Amin Danial Asham.
SYSTEM SOFTWARE Prepared by: Mrs. Careene McCallum-Rodney.
CHAPTER 2: COMPUTER-SYSTEM STRUCTURES Computer system operation Computer system operation I/O structure I/O structure Storage structure Storage structure.
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.
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.
C o n f i d e n t i a l 1 Course: BCA Semester: III Subject Code : BC 0042 Subject Name: Operating Systems Unit number : 1 Unit Title: Overview of Operating.
OS, , Part I Operating - System Structures Department of Computer Engineering, PSUWannarat Suntiamorntut.
Operating System Principles And Multitasking
Distributed System Concepts and Architectures Services
Operating System Structure A key concept of operating systems is multiprogramming. –Goal of multiprogramming is to efficiently utilize all of the computing.
Silberschatz, Galvin and Gagne  Operating System Concepts UNIT II Operating System Services.
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.
CE Operating Systems Lecture 2 Low level hardware support for operating systems.
Distributed System Services Fall 2008 Siva Josyula
O PERATING S YSTEM. What is an Operating System? An operating system is an event driven program which acts as an interface between a user of a computer,
CIS250 OPERATING SYSTEMS Chapter One Introduction.
CE Operating Systems Lecture 2 Low level hardware support for operating systems.
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.
Operating Systems.
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.
1 Chapter 2: Operating-System Structures Services Interface provided to users & programmers –System calls (programmer access) –User level access to system.
System Components Operating System Services System Calls.
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.
Operating Systems & System Software
Operating System Overview
Lecture 1: Operating System Services
2. OPERATING SYSTEM 2.1 Operating System Function
Credits: 3 CIE: 50 Marks SEE:100 Marks Lab: Embedded and IOT Lab
Advanced OS Concepts (For OCR)
Chapter 2: System Structures
Introduction to Operating System (OS)
Chapter 1: Introduction
Chapter 1: Introduction
Chapter 2: System Structures
Operating Systems.
Computer-System Architecture
CGS 3763 Operating Systems Concepts Spring 2013
Chapter 2: Operating-System Structures
Operating Systems Lecture 3.
Introduction to Operating Systems
Chapter 2: Operating-System Structures
Function of Operating Systems
Presentation transcript:

Lecture 11: Operating System Services

What is an Operating System? An operating system is an event driven program which acts as an interface between a user of a computer, and the computer hardware.

What are the main purposes of an operating system? 1.Transform a bare machine into an environment or virtual machine in which a user may execute programs. 2.To use the computer hardware in an efficient way. 3.To create a friendly interface between the user and bare machine.

Operating System Bare Machine User To create such an environment the operating system provides certain services to programs and to the users of those programs. Some of these services are:

Program execution: Error handling: Job sequencing: Input/Output operations: Interrupt handling: File system manipulation: Scheduling: Resource Allocation: Accounting of computer resources: Protection:

 Program execution: Users are interested in executing programs. The system must be able to load a program into memory and run it. The program must be able to end its execution, either normally or abnormally.  Error handling: For each type of error, the operating system should take the appropriate action to assure correct ant consistent computing. Example: Power failure in the CPU or memory. Parity error on tape. Printer out of paper. Arithmetic overflow. Access illegal memory location.

 Job sequencing: The system must determine the sequence in which jobs should be processed. In the first operating systems to transfer control from one Job to the next, a Job Control language interpreter(a command interpreter) had to be used. Example: $JOB $COMPILE "Fortran“ Program $LOAD & RUN Data $EOJ

 Input/Output operations: Since a user program cannot execute I/O operations directly, the O.S. must provide some means to do so. Example: Rewind tape drive Start I/O Skip first record

 Interrupt handling: Operating systems are event driven programs. If there are no programs to execute, no I/O devices to service, and no user to respond to, an O.S. will sit quietly, waiting for something to happen. Events are almost always signaled by the occurrence of an interrupt or trap. When an interrupt occurs, the hardware transfers control to the O.S., it determines which type of interrupt has occurred, and takes the appropriate actions. Types of interrupts: 1) Software interrupts 2) Hardware interrupts

 Software interrupts: They are generated within the CPU. 1. System calls(also known as SuperVisor Calls-SVC) 2. Traps(i.e. to handle program errors)  Hardware interrupts: These are signals sent to the cpu by devices to indicate that an I/O operation is completed. 1. I/O interrupts Timer interrupt: Every time the O.S. assigns the CPU to a program, the timer register is set to a value, say 100 ms, and at each clock tick the register is decremented by one. When the timer register reaches the value zero, an interrupt is generated, and the O.S. takes control of the computer system again, avoiding thus, that none program monopolizes the CPU.

 File system manipulation: Users will want to be able to create, delete, read, or write files. Scheduling: The system has to decide when to introduce new processes into the system and the order in which processes should run.  Resource Allocation: When there are multiple process running concurrently, resources must be allocated to each one of them. Example: A compiler. A tape unit. Memory.

Accounting of computer resources: The operating system must keep track of the type and amount of resources used by each user. This information can be used for the purpose of paying for the use of the system or for accumulating usage statistics. Protection: When several processes are being executed concurrently to increase CPU utilization, it should not be possible for one process to interfere the others.

Operating system characteristics Concurrency: Sharing: Long term storage: Determinacy Non-determinacy:

Concurrency: The existence of several simultaneous or parallel activities: for example, overlapping I/O operations and computation. INPUT DEVICE| Data 1| Data 2| Data 3 | CPU| Data 1| Data 2| Data 3| OUTPUT DEVICE | Data 1| Data 2 | Data 3|

 Sharing: The existence of several processes accessing the same data area or device. For example, sharing a compiler or a disk unit.  Long term storage: Programs and data can be stored for long periods of time.

 Determinacy The same program running with the same data should produce the same results.  Non-determinacy: The operating system must respond to events, which will occur in an unpredictable order but it must preserve the consistency of the whole system. If we have two processes, say P1 and P2, running concurrently, and P1 produces the events E1, E2, E3 and P2 produces the events E3, E4, E5. These six events might occur in different orders, such as E1,E2, E4, E3, E5,E6 or E3, E1, E4, E2, E3, E5 and the OS will keep all the system in a coherent way.

Operating systems types Mainframe operating systems  Server operating systems  Multiprocessor operating systems  Network Operating Systems  Distributed Operating Systems  Web operating systems (meta-computing)  Personal computer operating systems  Real time operating systems  Embedded operating systems  Smart card operating systems