Operating Systems. Designed and Presented by Dr. Ayman Elshenawy Elsefy

Size: px
Start display at page:

Download "Operating Systems. Designed and Presented by Dr. Ayman Elshenawy Elsefy"

Transcription

1 Operating Systems Designed and Presented by Dr. Ayman Elshenawy Elsefy Dept. of Systems & Computer Eng.. AL-AZHAR University Website : eaymanelshenawy.wordpress.com eaymanelshenawy@yahoo.com Reference Operating System Concepts, ABRAHAM SILBERSCHATZ

2 Chapter 2: Operating-System Structures

3 Chapter 2: Operating-System Structures OS Services provided User OS Interface System Calls Types of System Calls System Programs OS Design and Implementation OS Structure Virtual Machines OS Debugging and Generation System Boot

4 OS Services Operating system can be viewed from many points: What are the services that the system provides, and how? What are types of interface that it makes available to users and programmers; Its components and their interconnections. How operating systems is created and how a computer starts it? Operating system provides: An environment for the execution of programs ( provide services to programs to make the programming task easier and to the users of those programs ) OS services differ from one to another, but we can identify common classes Operating system services are: Functions that are helpful to the user Functions for ensuring efficient operation of the system.

5 OS Services

6 OS Services that Helps the user User interface (UI): can take several forms Command-Line (CLI): use a text commands and method for entering. Batches: execute file contains a set of commands. Graphics User Interface (GUI): windows, menus, mouse cursors and icons. Program execution load a program into memory, run that program, end it (success /fail) I/O operations A running program may require I/O (file or I/O device), user cant control I/O (recording to a CD or DVD drive or blanking a display screen). File-system manipulation: How programs are used to create file, write, read, extend, delete files and directories, search them, list file Information, permission and properties of these files.

7 OS Services that Helps the user Communications: Process needs to exchange information with another process (on the same computer or in different computers in a network). May be implemented via shared memory or message passing. Error detection. Detect possible errors and take the appropriate action to ensure correct computing : in CPU or memory or power failure. I/O devices (a connection failure on a network, or lack of paper in the printer). User program errors (arithmetic overflow, attempt to access an illegal memory location, or a too-great use of CPU time). Debugging facilities can greatly enhance the user s and programmer s abilities to use the system efficiently.

8 OS Services that Helps the System Resource allocation multiple users or multiple jobs running at the same time, use shared resources (such as CPU cycles ( CPU scheduling ), main memory (Memory Management), file storage (file systems), I/O devices). Accounting keep track of which users use how much and what kinds of computer resources: Users can be billed Accumulating usage statistics used to reconfigure the system to improve computing services. Protection and security: When several separate processes execute concurrently, it should not be possible for one process to interfere with the others or with the OS itself. Protection involves ensuring that all access to system resources is controlled. Security of the system from outsiders is also important (user authentication, user name and password).

9 OS User Interface Command Line Interpreter (CLI) OS may include CLI : In the kernel(dos). External program (windows and Unix) which run upon request. Some OS have multiple CLI to choose from are called shells ( In Unix and Linux Bourne, C shell, Bourne-Again shell, Korn shell. Most CLI manipulate files: create, delete, list, print, copy, execute,.. These commands can be implemented in two general ways: The CLI itself contains the code to execute the command, The size of the CLI depends on the number of commands that can be given (each command have its code) implements most commands through system programs, (programmers can add new commands to the system easily by creating new files with the proper names.) in this case the command interpreter does not understand the command, it merely uses the command to identify a file to be loaded into memory and executed. Thus, the UNIX command to delete a file (rm is added as a system program) rm file.txt

10 Bourne Shell Command Interpreter

11 OS Interface Graphical User Interface (GUI) User-friendly desktop interface Characterized by a desktop. The user moves the mouse to position its pointer on images, or icons, on the desktop. Icons represent programs, files, directories, and system functions. Clicking a button on the mouse can invoke a program, select a file or folder or pull down a menu that contains commands. Many systems now include both CLI and GUI interfaces Microsoft Windows is GUI with CLI command shell Apple Mac OS X as Aqua GUI interface with UNIX kernel available Solaris is CLI with optional GUI interfaces (Java Desktop, KDE)

12 The Mac OS X GUI

13 OS Interface Choice of Interface Is mostly one of personal preference. Most Windows users are happy to use the Windows GUI environment and almost never use the MS-DOS CLI. System administrators who manage computers and power users who have deep knowledge of a system frequently use the CLI interface. Only a subset of system functions is available via the GUI., CLI usually make repetitive tasks easier. For example, if a frequent task requires a set of command-line steps, those steps can be recorded into a file, and that file can be run just like a program. The program is not compiled into executable code but rather is interpreted by the CLI. These shell scripts are very common on systems that are command-line oriented, such as UNIX and Linux. The design of a useful and friendly user interface is therefore not a direct function of the operating system (but providing an adequate service to user programs).

14 System Calls Programming interface to the services provided by the OS Typically written in a high-level language (C or C++) Example: writing a simple program to read data from one file and copy them to another file. Running a sequence of system calls, 1. First to write a prompting message on the screen 2. Read from the keyboard the characters that define the two files (may be selected by mouse). 3. Open the input file (check error not exist or protected) if Error print message and terminate. 4. If the input file exists, then create a new output file (check error file exist, no memory). Abort if error exist, may delete the existing file and create a new one. 5. loop that reads from the input file (a system call) and writes to the output file (another system call). 6. close both files (another system call) 7. write a message to the console and terminate normally.

15 Example of System Calls System call sequence to copy the contents of one file to another file

16 System Calls Systems execute thousands of system calls per second and most programmers never see this level of detail. Application developers design programs according to an application programming interface (API). The API specifies a set of functions that are available to an application programmer, including the parameters that are passed to each function and the return values the programmer can expect. Three of the most common APIs available to application programmers: Win32 API for Windows, POSIX API for POSIX-based systems (which include virtually all versions of UNIX, Linux, and Mac OS X), Java API for designing programs that run on the Java virtual machine.

17

18 Example of Standard API Consider the Readfield() function in the Win32 APIa function for reading from a file A description of the parameters passed to ReadFile() HANDLE file the file to be read LPVOID buffer a buffer where the data will be read into and written from DWORD bytestoread the number of bytes to be read into the buffer LPDWORD bytesread the number of bytes read during the last read LPOVERLAPPED ovl indicates if overlapped I/O is being used

19 System Call Implementation The run-time support system: A set of functions built into libraries included with a compiler. A programming languages provides a system-call interface that links to system calls made available by the OS. The system-call interface intercepts function calls in the API and invokes the necessary system calls within the OS. A number is associated with each system call, and the system call interface maintains a table indexed according to these numbers. The caller need know nothing about how the system call is implemented or what it does during execution. It needs only to obey the API standard. Thus, most of the details of the operating-system interface are hidden from the programmer by the API and are managed by the run-time support library.

20 API System Call OS Relationship The relationship among an API, the system-call interface, and the OS. Standard C Library Example C program invoking printf() library call, which calls write() system call

21 System Call Parameter Passing Often, more information is required than simply identity of desired system call Exact type and amount of information vary according to OS and call Three general methods used to pass parameters to the OS Simplest: pass the parameters in registers In some cases, may be more parameters than registers Parameters stored in a block, or table, in memory, and address of block passed as a parameter in a register This approach taken by Linux and Solaris do not limit the number or length of parameters being passed Parameters placed, or pushed, onto the stack by the program and popped off the stack by the OS do not limit the number or length of parameters being passed

22 Parameter Passing via Table

23 Types of System Calls Process control end, abort, load, execute,create process, terminate process get process attributes, set process attributes wait for time, wait event, signal event, allocate and free memory File management create file, delete file, open, close file. read, write, reposition, get and set file attributes Device management request device, release device, read, write, reposition get and set device attributes, logically attach or detach devices Information maintenance Get and set time or date, Get and set system data. get and set process, file, or device attributes Communications create, delete connection, send, receive messages, transfer status information, attach and detach remote devices

24 Examples of Windows and Unix System Calls

25 Single Tasking OS - Example: MS-DOS Shell (command interpreter) invoked when system booted Simple method to run program No process created Single memory space Loads program into memory, overwriting all but the kernel Next, it sets the instruction pointer to the first instruction of the program. Program exit -> shell reloaded (a) At system startup (b) running a program

26 Multi-Tasking OS- Example: FreeBSD Unix variant User login -> invoke user s choice of shell Shell executes fork() system call to create process Executes exec() to load program into process Shell waits for process to terminate or continues with user commands Process exits with code of 0 no error or > 0 error code

27 System Programs ( System Utility) Provide a convenient environment for program development and execution Some of them are simply user interfaces to system calls; others are considerably more complex File management - Create, delete, copy, rename, print, dump, list, and generally manipulate files and directories Status information System for info - date, time, available memory, disk space, number of users. performance, logging, and debugging information Typically, these programs format and print the output to the terminal or other output devices Some systems implement a registry - used to store and retrieve configuration information

28 System Programs ( system Utility) File management - These programs create, delete, copy, rename, print, dump. Status information - Ask the system for the date, time, amount of available memory or disk space, number of users, or similar status information, logging, and debugging information, registry. File modification - Text editors to create and modify files and Special commands to search contents of files or modify of the text Programming-language support - Compilers, assemblers, debuggers. Program loading and execution - Absolute loaders, re-locatable loaders, linkage editors, and overlay-loaders, debugging systems for higher-level and machine language Communications - Creating virtual connections among processes, users, and computer systems, Allow users to send messages to one another s screens, browse web pages, send electronic-mail messages, log in remotely, transfer files from one machine to another Background services - All general-purpose systems have methods for launching certain system-program processes at boot time.

29 Operating-System Design and Implementation Define goals and specifications. The design of the system will be affected by the choice of hardware and the type of system: batch, time sharing, single user, multiuser, distributed, real time, or general purpose. User goals: Convenient to use, easy to learn and use, reliable, safe, and fast. Designer goals: easy to design, implement, and maintain; and it should be flexible, reliable, error free, and efficient. System goals: Resource allocator and device manager No unique solution to the problem of defining OS requirements. Because operating systems are collections of many programs, written by many people over a long period of time, it is difficult to make general statements about how they are implemented.

30 OS Structure - Simple Structure MS DOS Provide most functionality in the least space, Not divided into modules Its interfaces and levels of functionality are not well separated Application programs are able to access the basic I/O routines to write directly to the display and disk drives vulnerable to errant (or malicious) programs, causing entire system crashes when user programs fail no dualmode and no hardware protection,

31 OS Structure Limited Structure UNIX OS Consists of two separable parts: the kernel and the system programs. The kernel is further separated into a series of interfaces and device drivers, which have been added and expanded over the years as UNIX has evolved.

32 OS Structure - Layered Approach The OS is divided into a number of layers (levels), each built on top of lower layers. The bottom layer (layer 0), is the hardware; the highest (layer N) is the user interface. With modularity, layers are selected such that each uses functions (operations) and services of only lower-level layers

33 OS Structure Micro Kernel Divide the kernel into microkernels by removing all nonessential components from the kernel to the system and user-level (Mach OS 1980). Minimal process and memory management, communication facility. The performance of microkernels can suffer due to increased systemfunction overhead (win NT 4, enhanced in Win95 and windows XP)

34 OS Structure Mac OS X Structure

35 OS Structure Modules Most modern OS's implement kernel modules Uses object-oriented approach Each core component is separate Each talks to the others over known interfaces Each is loadable as needed within the kernel Overall, similar to layers but with more flexible Solaris Modular Approach

36 OS Structure Hybrid systems Combine different structures resulting in hybrid systems that address performance, security, and usability issues

37 Virtual Machines A virtual machine takes the layered approach. a single physical machine can run multiple operating systems concurrently, each in its own virtual machine. Divide the hardware of a single computer (the CPU, memory, disk drives, network interface cards,..) into several different execution environments, thereby creating the illusion that each separate execution environment is running its own private computer. Benefits: able to share the same hardware the host system is protected from the virtual machines define a network of virtual machines and enable each machine to send information over the virtual communication network. Changing an operating system is a difficult task.

38 Virtual Machines (Cont.) (a) Non-virtual machine (b) virtual machine

39 VM Where Work Station Popular commercial application that abstracts Intel X86 and compatible hardware into isolated virtual machines. Runs as an application on a host OS such as Windows or Linux and allows this host system to concurrently run several different guest OSs as independent virtual machines.

40 Java Java is a technology introduced by Sun Microsystems in the mid-1990s. Java technology consists of two essential components: 1. Java Programming-language specification Java is a general-purpose, OOP language with support for distributed programming. Java was originally favored by the Internet programming community because of its support for applets, which are programs with limited resource access that run within a Web browser. Used to design desktop applications, client server Web applications, and embedded systems such as smartphones. Programs are consists of more than one class (java compiler produces.class) Multithreaded language Development of concurrent applications to take advantage of modern processors with multiple processing cores. Secure language ( so it can be executed over a distributed network)

41 Java 2. Java Virtual Machine Its an abstract of computer and consists of a class loader and Java interpreter The class loader loads the compiled.class files from both the Java program and the Java API for execution by the Java interpreter. The.class file is verified. After Verification it run by the Java interpreter. JVM also manages memory by performing garbage collection

42 Java 3. Java Development Kit (JDK): consists of development tools, such as a compiler and debugger, and turns a Java source file program into a byte code (.class) file Java Run-time environment(jre): provides the JVM as well as the Java API for the host system.

43 Operating-System Debugging Debugging is finding and fixing errors, or bugs OS s generate log files containing error information Failure of an application can generate core dump file capturing memory of the process generated by the OS. Performance tuning can optimize system performance Kernighan s Law: Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it. DTrace tool in Solaris, FreeBSD, Mac OS X allows live instrumentation on production systems Probes fire when code is executed, capturing state data and sending it to consumers of those probes.

44 OS Generation OS's are designed to run and configured on any of a class of machines; The operating system is normally distributed on disk, on CD-ROM or DVD-ROM, or as an ISO image, which is a file in the format of a CD-ROM or DVD-ROM. SYSGEN program obtains information concerning the specific configuration of the hardware system What CPU is to be used? For multiple CPU systems, each CPU may be described. How will the boot disk be formatted? How many sections, or partitions, will it be separated into? How much memory is available? What devices are available? What OS options are desired?

45 System Boot OS must be made available to hardware so hardware can start it booting the system is the procedure of starting a computer by loading the kernel Bootstrap program bootstrap loader locates the kernel, loads it into main memory, and starts its execution. When power initialized on system, execution starts at a fixed memory location in read-only memory (ROM), or Firmware used to hold initial boot code

Chapter 2: Operating-System Structures. Operating System Concepts Essentials 8 th Edition

Chapter 2: Operating-System Structures. Operating System Concepts Essentials 8 th Edition Chapter 2: Operating-System Structures Operating System Concepts Essentials 8 th Edition Silberschatz, Galvin and Gagne 2011 Chapter 2: Operating-System Structures Operating System Services User Operating

More information

Chapter 2: Operating-System

Chapter 2: Operating-System Chapter 2: Operating-System Structures Chapter 2: Operating-System Structures Operating System Services! User Operating System Interface! System Calls! Types of System Calls! System Programs! Operating

More information

Chapter 2: Operating-System Structures

Chapter 2: Operating-System Structures Chapter 2: Operating-System Structures 2.1 Silberschatz, Galvin and Gagne 2009 Chapter 2: Operating-System Structures Operating System Services User Operating System Interface System Calls Types of System

More information

Chapter 2: Operating-System Structures

Chapter 2: Operating-System Structures Chapter 2: Operating-System Structures Silberschatz, Galvin and Gagne 2009 Chapter 2: Operating-System Structures Operating System Services User Operating System Interface System Calls Types of System

More information

Chapter 2: Operating-System Structures

Chapter 2: Operating-System Structures Chapter 2: Operating-System Structures Chapter 2: Operating-System Structures Operating System Services User Operating System Interface System Calls (important!) Types of System Calls (important!) System

More information

Chapter 2: Operating-System Structures

Chapter 2: Operating-System Structures Chapter 2: Operating-System Structures Chapter 2: Operating-System Structures Operating System Services User Operating System Interface System Calls Types of System Calls System Programs Operating System

More information

Chapter 2: System Structures

Chapter 2: System Structures Chapter 2: System Structures Chapter 2: System Structures 2.1 Operating-System Services 2.2 User and Operating-System Interface 2.3 System Calls 2.4 Types of System Calls 2.5 System Programs 2.6 Operating-System

More information

CHAPTER 2: SYSTEM STRUCTURES. By I-Chen Lin Textbook: Operating System Concepts 9th Ed.

CHAPTER 2: SYSTEM STRUCTURES. By I-Chen Lin Textbook: Operating System Concepts 9th Ed. CHAPTER 2: SYSTEM STRUCTURES By I-Chen Lin Textbook: Operating System Concepts 9th Ed. Chapter 2: System Structures Operating System Services User Operating System Interface System Calls Types of System

More information

CS307: Operating Systems

CS307: Operating Systems CS307: Operating Systems Chentao Wu 吴晨涛 Associate Professor Dept. of Computer Science and Engineering Shanghai Jiao Tong University SEIEE Building 3-513 wuct@cs.sjtu.edu.cn Download Lectures ftp://public.sjtu.edu.cn

More information

Chapter 2: Operating-System Structures. Chapter 2: Operating-System Structures. Objectives. Operating System Services

Chapter 2: Operating-System Structures. Chapter 2: Operating-System Structures. Objectives. Operating System Services Chapter 2: Operating-System Structures Chapter 2: Operating-System Structures Operating System Services User Operating System Interface System Calls Types of System Calls System Programs Operating System

More information

Chapter 2: Operating-System Structures

Chapter 2: Operating-System Structures Chapter 2: Operating-System Structures Chapter 2: Operating-System Structures Operating System Services User Operating System Interface System Calls Types of System Calls System Programs Operating System

More information

Chapter 2: Operating-System Structures. Operating System Concepts 9 th Edition

Chapter 2: Operating-System Structures. Operating System Concepts 9 th Edition Chapter 2: Operating-System Structures Silberschatz, Galvin and Gagne 2013 Chapter 2: Operating-System Structures Operating System Services User Operating System Interface System Calls Types of System

More information

Chapter 2: System Structures. Operating System Concepts 9 th Edition

Chapter 2: System Structures. Operating System Concepts 9 th Edition Chapter 2: System Structures Silberschatz, Galvin and Gagne 2013 Chapter 2: System Structures Operating System Services User Operating System Interface System Calls Types of System Calls System Programs

More information

Objectives. Chapter 2: Operating-System Structures. 2.1 Operating System Services

Objectives. Chapter 2: Operating-System Structures. 2.1 Operating System Services Objectives Chapter 2: Operating-System Structures To describe the services an operating system provides to users, processes, and other systems To discuss the various ways of structuring an operating system

More information

Chapter 2: Operating-System Structures. Operating System Concepts 9 th Edit9on

Chapter 2: Operating-System Structures. Operating System Concepts 9 th Edit9on Chapter 2: Operating-System Structures Operating System Concepts 9 th Edit9on Silberschatz, Galvin and Gagne 2013 Objectives To describe the services an operating system provides to users, processes, and

More information

Chapter 2. Operating-System Structures

Chapter 2. Operating-System Structures Chapter 2 Operating-System Structures 2.1 Chapter 2: Operating-System Structures Operating System Services User Operating System Interface System Calls Types of System Calls System Programs Operating System

More information

Operating-System Structures

Operating-System Structures Recap Chapter 2: Operating-System Structures Presented By: Dr. El-Sayed M. El-Alfy Note: Most of the slides are compiled from the textbook and its complementary resources From: OS by Tanenbaum, 2008 March

More information

Chapter 2: System Structures. Operating System Concepts 9 th Edition

Chapter 2: System Structures. Operating System Concepts 9 th Edition Chapter 2: System Structures Silberschatz, Galvin and Gagne 2013 Chapter 2: System Structures Operating System Services User Operating System Interface System Calls Types of System Calls System Programs

More information

Lecture 2 Operating System Structures (chapter 2)

Lecture 2 Operating System Structures (chapter 2) Bilkent University Department of Computer Engineering CS342 Operating Systems Lecture 2 Operating System Structures (chapter 2) Dr. İbrahim Körpeoğlu http://www.cs.bilkent.edu.tr/~korpe 1 References The

More information

CS420: Operating Systems. OS Services & System Calls

CS420: Operating Systems. OS Services & System Calls OS Services & System Calls James Moscola Department of Engineering & Computer Science York College of Pennsylvania Based on Operating System Concepts, 9th Edition by Silberschatz, Galvin, Gagne Operating

More information

Chapter 2 Operating-System Structures

Chapter 2 Operating-System Structures This chapter will discuss the following concepts: 2.1 Operating System Services 2.2 User Operating System Interface 2.3 System Calls 2.4 System Programs 2.5 Operating System Design and Implementation 2.6

More information

TDDI04, K. Arvidsson, IDA, Linköpings universitet Operating System Structures. Operating System Structures Overview. Operating System Services

TDDI04, K. Arvidsson, IDA, Linköpings universitet Operating System Structures. Operating System Structures Overview. Operating System Services TDDI04 Concurrent Programming, Operating Systems, and Real-time Operating Systems Operating System Structures [SGG7] Chapter 2 Copyright Notice: The lecture notes are mainly based on Silberschatz s, Galvin

More information

The Slide does not contain all the information and cannot be treated as a study material for Operating System. Please refer the text book for exams.

The Slide does not contain all the information and cannot be treated as a study material for Operating System. Please refer the text book for exams. The Slide does not contain all the information and cannot be treated as a study material for Operating System. Please refer the text book for exams. Operating System Services User Operating System Interface

More information

Chapter 2: Operating-System Structures. Operating System Concepts 8 th Edition

Chapter 2: Operating-System Structures. Operating System Concepts 8 th Edition Chapter 2: Operating-System Structures Operating System Concepts 8 th Edition Silberschatz, Galvin and Gagne 2009 Chapter 2: Operating-System Structures Different Services of Operating System. System Calls-

More information

Chapter 2: System Structures

Chapter 2: System Structures Chapter 2: Operating System Structures Operating System Services System Calls Chapter 2: System Structures System Programs Operating System Design and Implementation Operating System Structure Virtual

More information

Chapter 2 Operating System Structures

Chapter 2 Operating System Structures Chapter 2 Operating System Structures Operating System Concepts 8 th Edition, Silberschatz, Galvin and Gagne 2009 / Enhancements by Alan Today s Objectives To describe the services an operating system

More information

Introduction to PC Operating Systems

Introduction to PC Operating Systems Introduction to PC Operating Systems Operating System Concepts 8th Edition Written by: Abraham Silberschatz, Peter Baer Galvin and Greg Gagne John Wiley & Sons, Inc. ISBN: 978-0-470-12872-5 Chapter 2 Operating-System

More information

Operating-System Structures

Operating-System Structures Operating-System Structures Chapter 2 Operating System Services One set provides functions that are helpful to the user: User interface Program execution I/O operations File-system manipulation Communications

More information

Chapter 2. Operating System Structures

Chapter 2. Operating System Structures Chapter 2 Operating System Structures Contents Operating System Services User Operating System Interface System Calls Types of System Calls System Programs Operating System Design and Implementation Operating

More information

Operating System Services. User Services. System Operation Services. User Operating System Interface - CLI. A View of Operating System Services

Operating System Services. User Services. System Operation Services. User Operating System Interface - CLI. A View of Operating System Services Operating System Services One set of services for users The other set of services for system operations Operating Systems Structures Notice: This set of slides is based on the notes by Professor Perrone

More information

Operating System Services

Operating System Services CSE325 Principles of Operating Systems Operating System Services David Duggan dduggan@sandia.gov January 22, 2013 Reading Assignment 3 Chapter 3, due 01/29 1/23/13 CSE325 - OS Services 2 What Categories

More information

CS370 Operating Systems

CS370 Operating Systems CS370 Operating Systems Colorado State University Yashwant K Malaiya Fall 2016 Lecture 5 Slides based on Text by Silberschatz, Galvin, Gagne Various sources 1 1 User Operating System Interface - CLI CLI

More information

Last Class: OS and Computer Architecture. Last Class: OS and Computer Architecture

Last Class: OS and Computer Architecture. Last Class: OS and Computer Architecture Last Class: OS and Computer Architecture System bus Network card CPU, memory, I/O devices, network card, system bus Lecture 4, page 1 Last Class: OS and Computer Architecture OS Service Protection Interrupts

More information

Chapter 2: OS Structures

Chapter 2: OS Structures Chapter 2: OS Structures OS Structures 1 Operating System Services (1) One set of operating-system services provides functions that are helpful to the user (or user processes): User interface - almost

More information

OPERATING SYSTEMS. Prescribed Text Book Operating System Principles, Seventh Edition By Abraham Silberschatz, Peter Baer Galvin and Greg Gagne

OPERATING SYSTEMS. Prescribed Text Book Operating System Principles, Seventh Edition By Abraham Silberschatz, Peter Baer Galvin and Greg Gagne OPERATING SYSTEMS Prescribed Text Book Operating System Principles, Seventh Edition By Abraham Silberschatz, Peter Baer Galvin and Greg Gagne OVERVIEW An operating system is a program that manages the

More information

Chapter 2: Operating-System Structures. Operating System Concepts 9 th Edit9on

Chapter 2: Operating-System Structures. Operating System Concepts 9 th Edit9on Chapter 2: Operating-System Structures Operating System Concepts 9 th Edit9on Silberschatz, Galvin and Gagne 2013 Chapter 2: Operating-System Structures 1. Operating System Services 2. User Operating System

More information

Kernel Types Simple OS Examples System Calls. Operating Systems. Autumn CS4023

Kernel Types Simple OS Examples System Calls. Operating Systems. Autumn CS4023 Operating Systems Autumn 2017-2018 Outline 1 2 3 Types of 2.4, SGG The OS Kernel The kernel is the central component of an OS It has complete control over everything that occurs in the system Kernel overview

More information

CSE 4/521 Introduction to Operating Systems

CSE 4/521 Introduction to Operating Systems CSE 4/521 Introduction to Operating Systems Lecture 3 Operating Systems Structures (Operating-System Services, User and Operating-System Interface, System Calls, Types of System Calls, System Programs,

More information

Lecture 2 - Fundamental Concepts

Lecture 2 - Fundamental Concepts Lecture 2 - Fundamental Concepts Instructor : Bibhas Ghoshal (bibhas.ghoshal@iiita.ac.in) Autumn Semester, 2015 Bibhas Ghoshal IOSY 332C & IOPS 332C: OS Autumn Semester, 2015 1 / 43 Lecture Outline Operating

More information

Four Components of a Computer System

Four Components of a Computer System Four Components of a Computer System Operating System Concepts Essentials 2nd Edition 1.1 Silberschatz, Galvin and Gagne 2013 Operating System Definition OS is a resource allocator Manages all resources

More information

What are some common categories of system calls? What are common ways of structuring an OS? What are the principles behind OS design and

What are some common categories of system calls? What are common ways of structuring an OS? What are the principles behind OS design and What are the services provided by an OS? What are system calls? What are some common categories of system calls? What are the principles behind OS design and implementation? What are common ways of structuring

More information

Operating System: Chap2 OS Structure. National Tsing-Hua University 2016, Fall Semester

Operating System: Chap2 OS Structure. National Tsing-Hua University 2016, Fall Semester Operating System: Chap2 OS Structure National Tsing-Hua University 2016, Fall Semester Outline OS Services OS-Application Interface OS Structure Chapter2 OS-Structure Operating System Concepts NTHU LSA

More information

Chapter 3: Operating-System Structures

Chapter 3: Operating-System Structures 1 Chapter 3: Operating-System Structures System Components Operating System Services System Calls System Programs System Structure Virtual Machines System Design and Implementation System Generation 3.1

More information

Often, more information is required when designing system call Information varies according to OS and types of system call

Often, more information is required when designing system call Information varies according to OS and types of system call System Call Parameter Passing Often, more information is required when designing system call Information varies according to OS and types of system call Three general methods used to pass parameters to

More information

UNIT 2. OPERATING SYSTEM STRUCTURES

UNIT 2. OPERATING SYSTEM STRUCTURES This document can be downloaded from www.chetanahegde.in with most recent updates. 1 UNIT 2. OPERATING SYSTEM STRUCTURES 2.1 INTRODUCTION An OS provides the environment within which the programs are executed.

More information

Full file at

Full file at Import Settings: Base Settings: Brownstone Default Highest Answer Letter: D Multiple Keywords in Same Paragraph: No Chapter: Chapter 2 Multiple Choice 1. A is an example of a systems program. A) command

More information

Chapter 3: Operating-System Structures

Chapter 3: Operating-System Structures Chapter 3: Operating-System Structures System Components Operating System Services System Calls System Programs System Structure Virtual Machines System Design and Implementation System Generation 3.1

More information

Chapter 3: Operating-System Structures

Chapter 3: Operating-System Structures Chapter 3: Operating-System Structures System Components Operating System Services System Calls POSIX System Programs System Structure Virtual Machines System Design and Implementation System Generation

More information

OPERATING SYSTEMS Lecture Notes. Prepared by K.Rohini, Assistant Professor, CSE Department, GVPCEW.

OPERATING SYSTEMS Lecture Notes. Prepared by K.Rohini, Assistant Professor, CSE Department, GVPCEW. OPERATING SYSTEMS Lecture Notes Prepared by K.Rohini, Assistant Professor, CSE Department, GVPCEW. UNIT-I Computer System and Operating System Overview: Overview of computer operating systems, operating

More information

OS and Computer Architecture. Chapter 3: Operating-System Structures. Common System Components. Process Management

OS and Computer Architecture. Chapter 3: Operating-System Structures. Common System Components. Process Management Last class: OS and Architecture OS and Computer Architecture OS Service Protection Interrupts System Calls IO Scheduling Synchronization Virtual Memory Hardware Support Kernel/User Mode Protected Instructions

More information

Operating-System Structures

Operating-System Structures Operating-System Structures System Components Operating System Services System Calls System Programs System Structure Virtual Machines System Design and Implementation System Generation 3.1 Sana a University,

More information

Last class: OS and Architecture. OS and Computer Architecture

Last class: OS and Architecture. OS and Computer Architecture Last class: OS and Architecture OS and Computer Architecture OS Service Protection Interrupts System Calls IO Scheduling Synchronization Virtual Memory Hardware Support Kernel/User Mode Protected Instructions

More information

Last class: OS and Architecture. Chapter 3: Operating-System Structures. OS and Computer Architecture. Common System Components

Last class: OS and Architecture. Chapter 3: Operating-System Structures. OS and Computer Architecture. Common System Components Last class: OS and Architecture Chapter 3: Operating-System Structures System Components Operating System Services System Calls System Programs System Structure Virtual Machines System Design and Implementation

More information

Module 3: Operating-System Structures. Common System Components

Module 3: Operating-System Structures. Common System Components Module 3: Operating-System Structures System Components Operating System Services System Calls System Programs System Structure Virtual Machines System Design and Implementation System Generation 3.1 Common

More information

Introduction to Operating Systems (Part III)

Introduction to Operating Systems (Part III) Introduction to Operating Systems (Part III) Amir H. Payberah amir@sics.se Amirkabir University of Technology (Tehran Polytechnic) Amir H. Payberah (Tehran Polytechnic) Introduction 1393/6/29 1 / 43 Operating

More information

Module 3: Operating-System Structures

Module 3: Operating-System Structures Module 3: Operating-System Structures System Components Operating-System Services System Calls System Programs System Structure Virtual Machines System Design and Implementation System Generation Operating

More information

Module 1 Introduction/OS Overview

Module 1 Introduction/OS Overview Module 1 Introduction/OS Overview Reading: Chapter 1 and 2 (Silberchatz) Objective: Quick overview of computer system organization the processor (CPU), memory, and input/output, architecture and general

More information

CSE Opera+ng System Principles

CSE Opera+ng System Principles CSE 30341 Opera+ng System Principles Lecture 3 Systems Structure Project 1 Intro CSE 30341 Opera+ng System Principles 2 1 Recap Last Lecture I/O Structure (I/O Interface, DMA) Storage and Memory Hierarchy

More information

What we saw. Desarrollo de Aplicaciones en Red. 1. OS Design. 2. Service description. 1.1 Operating System Service (1)

What we saw. Desarrollo de Aplicaciones en Red. 1. OS Design. 2. Service description. 1.1 Operating System Service (1) What we saw Desarrollo de Aplicaciones en Red José Rafael Rojano Cáceres http://www.uv.mx/rrojano Distributed system: Collection of independent computers that for the user works like if it where one CPU.

More information

CSC Operating Systems Spring Lecture - II OS Structures. Tevfik Ko!ar. Louisiana State University. January 17 th, 2007.

CSC Operating Systems Spring Lecture - II OS Structures. Tevfik Ko!ar. Louisiana State University. January 17 th, 2007. CSC 4103 - Operating Systems Spring 2008 Lecture - II OS Structures Tevfik Ko!ar Louisiana State University January 17 th, 2007 1 Announcements Teaching Assistant: Asim Shrestrah Email: ashres1@lsu.edu

More information

Announcements. Operating System Structure. Roadmap. Operating System Structure. Multitasking Example. Tevfik Ko!ar

Announcements. Operating System Structure. Roadmap. Operating System Structure. Multitasking Example. Tevfik Ko!ar CSC 4103 - Operating Systems Spring 2008 Lecture - II OS Structures Tevfik Ko!ar Teaching Assistant: Asim Shrestrah Email: ashres1@lsu.edu Announcements All of you should be now in the class mailing list.

More information

! Software ( kernel ) that runs at all times. ! OS performs two unrelated functions: Maria Hybinette, UGA. user! 1! Maria Hybinette, UGA. user! n!

! Software ( kernel ) that runs at all times. ! OS performs two unrelated functions: Maria Hybinette, UGA. user! 1! Maria Hybinette, UGA. user! n! Review: What is An Operating System?! Software ( ) that runs at all times CSCI 6730 / 4730 Operating Systems Structures & System Design» Really, the part of the that runs in (or need to).» But note - there

More information

Chap2: Operating-System Structures

Chap2: Operating-System Structures Chap2: Operating-System Structures Objectives: services OS provides to users, processes, and other systems structuring an operating system how operating systems are designed and customized and how they

More information

Architectural Support for Operating Systems. Jinkyu Jeong ( Computer Systems Laboratory Sungkyunkwan University

Architectural Support for Operating Systems. Jinkyu Jeong ( Computer Systems Laboratory Sungkyunkwan University Architectural Support for Operating Systems Jinkyu Jeong ( jinkyu@skku.edu) Computer Systems Laboratory Sungkyunkwan University http://csl.skku.edu Today s Topics Basic services of OS Basic computer system

More information

Operating-System Structures

Operating-System Structures Operating-System Structures System Components Operating System Services System Calls System Programs System Structure System Design and Implementation System Generation 1 Common System Components Process

More information

PG-TRB COMPUTER INSTRUCTOR OPERATING SYSTEMS

PG-TRB COMPUTER INSTRUCTOR OPERATING SYSTEMS INSTRUCTORS GRADE-I-(NEW SYLLABUS-2019)-- CONTACT:. PG-TRB COMPUTER INSTRUCTOR OPERATING SYSTEMS 20 COACHING CENTRE-TNUSRB-EXAM STUDY MATERIAL/ PG-TRB-COMPUTER INSTRUCTOR GRADE-I / TET: P1/P2 /RRB AEEO/STUDY

More information

OS Structures. ICS332 Operating Systems

OS Structures. ICS332 Operating Systems OS Structures ICS332 Operating Systems OS Services and Features OS Services and Features Helpful to users Better efficiency/operation OS Services Load and run a program Allow a program to end in multiple

More information

CSCI 6730 / 4730 Operating Systems. Key Questions in System Design. Review: What is An Operating System? Key Points

CSCI 6730 / 4730 Operating Systems. Key Questions in System Design. Review: What is An Operating System? Key Points CSCI 6730 / 4730 Operating Systems Structures & System Design Review: What is An Operating System? Key Points Software ( ) that runs at all times Really, the part of the system that runs in mode (or need

More information

Chapter 3 Process Description and Control

Chapter 3 Process Description and Control Operating Systems: Internals and Design Principles Chapter 3 Process Description and Control Seventh Edition By William Stallings Example of Standard API Consider the ReadFile() function in the Win32 API

More information

Ricardo Rocha. Department of Computer Science Faculty of Sciences University of Porto

Ricardo Rocha. Department of Computer Science Faculty of Sciences University of Porto Ricardo Rocha Department of Computer Science Faculty of Sciences University of Porto Slides based on the book Operating System Concepts, 9th Edition, Abraham Silberschatz, Peter B. Galvin and Greg Gagne,

More information

Operating Systems. Operating System Structure. Lecture 2 Michael O Boyle

Operating Systems. Operating System Structure. Lecture 2 Michael O Boyle Operating Systems Operating System Structure Lecture 2 Michael O Boyle 1 Overview Architecture impact User operating interaction User vs kernel Syscall Operating System structure Layers Examples 2 Lower-level

More information

Operating System Structure

Operating System Structure CSE325 Principles of Operating Systems Operating System Structure David Duggan dduggan@sandia.gov January 24, 2013 A View of Operating System Services 1/24/13 CSE325 - OS Structure 2 Operating System Design

More information

Operating- System Structures

Operating- System Structures Operating- System Structures 2 CHAPTER Practice Exercises 2.1 What is the purpose of system calls? Answer: System calls allow user-level processes to request services of the operating system. 2.2 What

More information

OPERATING SYSTEMS UNIT - 1

OPERATING SYSTEMS UNIT - 1 OPERATING SYSTEMS UNIT - 1 Syllabus UNIT I FUNDAMENTALS Introduction: Mainframe systems Desktop Systems Multiprocessor Systems Distributed Systems Clustered Systems Real Time Systems Handheld Systems -

More information

Operating System Concepts Ch. 2: Operating System Structures

Operating System Concepts Ch. 2: Operating System Structures Operating System Concepts Ch. 2: Operating System Structures Silberschatz, Galvin & Gagne Content This chapter goes into more detail on the structure of Operating Systems. - Organization of the different

More information

Operating Systems CS3502 Spring 2018

Operating Systems CS3502 Spring 2018 Operating Systems CS3502 Spring 2018 Presented by Dr. Guoliang Liu Department of Computer Science College of Computing and Software Engineering Kennesaw State University Computer Systems See Appendix G

More information

CSCA0201 FUNDAMENTALS OF COMPUTING. Chapter 6 Operating Systems

CSCA0201 FUNDAMENTALS OF COMPUTING. Chapter 6 Operating Systems CSCA0201 FUNDAMENTALS OF COMPUTING Chapter 6 Operating Systems 1 1. Operating Systems 2. Types of Operating System 3. Major Functions 4. User Interface 5. Examples of Operating System 2 Operating Systems

More information

Chapter 2: Operating-System Structures

Chapter 2: Operating-System Structures Chapter 2: Operating-System Structures Chapter 2: Operating-System Structures Operating System Services User Operating System Interface System Calls Types of System Calls System Programs Operating System

More information

OS structure. Process management. Major OS components. CSE 451: Operating Systems Spring Module 3 Operating System Components and Structure

OS structure. Process management. Major OS components. CSE 451: Operating Systems Spring Module 3 Operating System Components and Structure CSE 451: Operating Systems Spring 2012 Module 3 Operating System Components and Structure Ed Lazowska lazowska@cs.washington.edu Allen Center 570 The OS sits between application programs and the it mediates

More information

Operating System Architecture. CS3026 Operating Systems Lecture 03

Operating System Architecture. CS3026 Operating Systems Lecture 03 Operating System Architecture CS3026 Operating Systems Lecture 03 The Role of an Operating System Service provider Provide a set of services to system users Resource allocator Exploit the hardware resources

More information

Operating systems Architecture

Operating systems Architecture Operating systems Architecture 1 Operating Systems Low level software system that manages all applications implements an interface between applications and resources manages available resources Resource

More information

OS concepts and structure. q OS components & interconnects q Structuring OSs q Next time: Processes

OS concepts and structure. q OS components & interconnects q Structuring OSs q Next time: Processes OS concepts and structure q OS components & interconnects q Structuring OSs q Next time: Processes OS Views Perspectives, OS as the services it provides its components and interactions Services to Users

More information

Roadmap. Tevfik Ko!ar. CSC Operating Systems Fall Lecture - VII CPU Scheduling - II. Louisiana State University

Roadmap. Tevfik Ko!ar. CSC Operating Systems Fall Lecture - VII CPU Scheduling - II. Louisiana State University CSC 4103 - Operating Systems Fall 2009 Lecture - VII CPU Scheduling - II Tevfik Ko!ar Louisiana State University September 14 th, 2009 1 Roadmap Multilevel Feedback Queues Estimating CPU bursts Project

More information

Roadmap. Multilevel Queue Scheduling. Multilevel Queue. Example of Multilevel Feedback Queue. Multilevel Feedback Queue. Tevfik Ko!

Roadmap. Multilevel Queue Scheduling. Multilevel Queue. Example of Multilevel Feedback Queue. Multilevel Feedback Queue. Tevfik Ko! CSC 4103 - Operating Systems Fall 2009 Lecture - VII CPU Scheduling - II Roadmap Multilevel Feedback Queues Estimating CPU bursts Project Discussion System Calls Virtual Machines Tevfik Ko!ar Louisiana

More information

Operating System Review

Operating System Review COP 4225 Advanced Unix Programming Operating System Review Chi Zhang czhang@cs.fiu.edu 1 About the Course Prerequisite: COP 4610 Concepts and Principles Programming System Calls Advanced Topics Internals,

More information

Operating System. Operating System Overview. Structure of a Computer System. Structure of a Computer System. Structure of a Computer System

Operating System. Operating System Overview. Structure of a Computer System. Structure of a Computer System. Structure of a Computer System Overview Chapter 1.5 1.9 A program that controls execution of applications The resource manager An interface between applications and hardware The extended machine 1 2 Structure of a Computer System Structure

More information

About the Presentations

About the Presentations About the Presentations The presentations cover the objectives found in the opening of each chapter. All chapter objectives are listed in the beginning of each presentation. You may customize the presentations

More information

Operating System Structure

Operating System Structure Operating System Structure Heechul Yun Disclaimer: some slides are adopted from the book authors slides with permission Recap: Memory Hierarchy Fast, Expensive Slow, Inexpensive 2 Recap Architectural support

More information

Operating Systems Overview. Chapter 2

Operating Systems Overview. Chapter 2 Operating Systems Overview Chapter 2 Operating System A program that controls the execution of application programs An interface between the user and hardware Masks the details of the hardware Layers and

More information

Operating System. Operating System Overview. Layers of Computer System. Operating System Objectives. Services Provided by the Operating System

Operating System. Operating System Overview. Layers of Computer System. Operating System Objectives. Services Provided by the Operating System Operating System Operating System Overview Chapter 2 A program that controls the execution of application programs An interface between applications and hardware 1 2 Operating System Objectives Layers

More information

Operating System Overview. Operating System

Operating System Overview. Operating System Operating System Overview Chapter 2 1 Operating System A program that controls the execution of application programs An interface between applications and hardware 2 1 Operating System Objectives Convenience

More information

Download from Powered By JbigDeaL

Download from  Powered By JbigDeaL 1. If a word is typed that is not in Word s dictionary, a wavy underline appears below the word. (A) red (B) green (C) blue (D) black 2. The button on the quick access Toolbar allows you to cancel your

More information

EECS 3221 Operating System Fundamentals

EECS 3221 Operating System Fundamentals EECS 3221 Operating System Fundamentals Instructor: Prof. Hui Jiang Email: hj@cse.yorku.ca Web: http://www.eecs.yorku.ca/course/3221 General Info 3 lecture hours each week 2 assignments (2*5%=10%) 1 project

More information

EECS 3221 Operating System Fundamentals

EECS 3221 Operating System Fundamentals General Info EECS 3221 Operating System Fundamentals Instructor: Prof. Hui Jiang Email: hj@cse.yorku.ca Web: http://www.eecs.yorku.ca/course/3221 3 lecture hours each week 2 assignments (2*5%=10%) 1 project

More information

Introduction to Java Programming

Introduction to Java Programming Introduction to Java Programming Lecture 1 CGS 3416 Spring 2017 1/9/2017 Main Components of a computer CPU - Central Processing Unit: The brain of the computer ISA - Instruction Set Architecture: the specific

More information

Process Description and Control

Process Description and Control Process Description and Control 1 Process:the concept Process = a program in execution Example processes: OS kernel OS shell Program executing after compilation www-browser Process management by OS : Allocate

More information

Operating System Structure

Operating System Structure Operating System Structure Heechul Yun Disclaimer: some slides are adopted from the book authors slides with permission Recap OS needs to understand architecture Hardware (CPU, memory, disk) trends and

More information

CS 300 Leftovers. CS460 Pacific University 1

CS 300 Leftovers. CS460 Pacific University 1 CS 300 Leftovers Pacific University 1 argc/argv The C Programming Language section 5.10, page 114 int main(int argc, char** argv) argc - number of entries in argv argv - array of character pointers containing

More information

OPERATING SYSTEMS: Lesson 1: Introduction to Operating Systems

OPERATING SYSTEMS: Lesson 1: Introduction to Operating Systems OPERATING SYSTEMS: Lesson 1: Introduction to Jesús Carretero Pérez David Expósito Singh José Daniel García Sánchez Francisco Javier García Blas Florin Isaila 1 Why study? a) OS, and its internals, largely

More information

Chapter 8 Operating Systems and Utility Programs

Chapter 8 Operating Systems and Utility Programs Chapter 8 Operating Systems and Utility Programs Chapter 8 Objectives Identify the types of system software Summarize the startup process on a personal computer Summarize the features of several stand-alone

More information