Chapter 2. System Structures

Slides:



Advertisements
Similar presentations
Dr. Kalpakis CMSC 421, Operating Systems Operating-System Structures.
Advertisements

Chap 2 System Structures.
Operating System Structure
Operating-System Structures
Silberschatz, Galvin and Gagne ©2009 Operating System Concepts – 8 th Edition Chapter 2: Operating-System Structures.
Silberschatz, Galvin and Gagne ©2009 Operating System Concepts – 8 th Edition, Chapter 2: Operating-System Structures.
Chapter 2: Operating-System Structures. 2.2 Silberschatz, Galvin and Gagne ©2005 Operating System Concepts Chapter 2: Operating-System Structures Operating.
3.1 Silberschatz, Galvin and Gagne ©2003 Operating System Concepts with Java Chapter 3: Operating-System Structures System Components Operating System.
Operating-System Structures
Silberschatz, Galvin and Gagne ©2007 Operating System Concepts with Java – 7 th Edition, Nov 15, 2006 Chapter 2: Operating-System Structures.
Silberschatz, Galvin and Gagne ©2009 Operating System Concepts – 8 th Edition, Chapter 2: Operating-System Structures Revised and updated by David Sarne.
Chapter 2: Operating-System Structures. 2.2 Silberschatz, Galvin and Gagne ©2005 Operating System Concepts Chapter 2: Operating-System Structures Operating.
Chapter 2: Operating-System Structures
Modified from Silberschatz, Galvin and Gagne ©2009 CS 446/646 Principles of Operating Systems Lecture 3 Chapter 2: Operating-System Structures.
Silberschatz, Galvin and Gagne  Operating System Concepts Chapter 3: Operating-System Structures System Components Operating System Services.
CMPT 300: Operating Systems I
Common System Components
Os31 Chapter 3 Operating-System Structures. os32 Outlines System Components Operating System Services System Calls System Programs System Structure Virtual.
Operating-System Structures Chapter 2 : Operating-System Structures.
Silberschatz, Galvin and Gagne ©2007 Operating System Concepts with Java – 7 th Edition, Nov 15, 2006 Chapter 2: Operating-System Structures.
Silberschatz, Galvin and Gagne ©2009 Operating System Concepts – 8 th Edition Chapter 2: Operating-System Structures Modified from the text book.
Chapter 3: Operating-System Structures System Components Operating System Services System Calls System Programs System Structure Virtual Machines System.
Operating-System Structures
2.1 Silberschatz, Galvin and Gagne ©2009 Operating System Concepts with Java – 8 th Edition Chapter 2: Operating-System Structures.
Chapter 2: Operating-System Structures
2.1 Silberschatz, Galvin and Gagne ©2009Operating System Concepts with Java – 8 th Edition Chapter 2: Operating-System Structures.
Chapter 2: Operating-System Structures. 2.2 Silberschatz, Galvin and Gagne ©2005 Operating System Concepts – 7 th Edition, Jan 14, 2005 Operating System.
Chapter 2: Operating-System Structures. 2.2 Silberschatz, Galvin and Gagne ©2005 Operating System Concepts Chapter 2: Operating-System Structures Operating.
Silberschatz, Galvin and Gagne ©2009 Edited by Khoury, 2015 Operating System Concepts – 9 th Edition, Chapter 2: Operating-System Structures.
Chapter 2: Operating-System Structures. 2.2 Silberschatz, Galvin and Gagne ©2005 Operating System Concepts Chapter 2: Operating-System Structures Operating.
Chapter 2: System Structures. 2.2 Silberschatz, Galvin and Gagne ©2005 Operating System Principles Chapter 2: System Structures Operating System Services.
2.1 Silberschatz, Galvin and Gagne ©2005 Operating System Concepts Chapter 2: Operating-System Structures Overview of topics covered Operating System Services.
Chapter 2: Operating-System Structures. 2.2 Silberschatz, Galvin and Gagne ©2005 Operating System Concepts Operating System Services One set of operating-system.
1 Chapter 2: Operating-System Structures. 2 Operating System Services User Operating System Interface System Calls Types of System Calls System Programs.
Silberschatz, Galvin and Gagne  Operating System Concepts Chapter 3: Operating-System Structures System Components Operating System Services.
Silberschatz, Galvin and Gagne  2002 Modified for CSCI 399, Royden, Operating System Concepts Operating Systems Lecture 6 System Calls OS System.
Chapter 2: Operating-System Structures. 2.2 Silberschatz, Galvin and Gagne ©2005 Operating System Concepts – 7 th Edition, Jan 14, 2005 Outline n Operating.
Silberschatz, Galvin and Gagne ©2013 Operating System Concepts – 9 th Edition Chapter 2: Operating-System Structures.
3.1 Silberschatz, Galvin and Gagne ©2003 Operating System Concepts with Java Chapter 3: Operating-System Structures System Components Operating System.
3.1 Operating System Chapter 3: Operating-System Structures System Components Operating System Services System Calls System Programs System Structure Virtual.
Silberschatz, Galvin and Gagne  Operating System Concepts Chapter 3: Operating-System Structures System Components Operating System Services.
OS, , Part I Operating - System Structures Department of Computer Engineering, PSUWannarat Suntiamorntut.
Shan Gao Fall 2007 Department of Computer Science Georgia State University.
Chapter 2: Operating-System Structures. 2.2 Silberschatz, Galvin and Gagne ©2005 Operating System Concepts – 7 th Edition, Jan 14, 2005 Chapter 2: Operating-System.
Silberschatz, Galvin and Gagne ©2009 Operating System Concepts – 8 th Edition, Chapter 2: Operating-System Structures.
Chapter 2: Operating-System Structures. 2.2 Silberschatz, Galvin and Gagne ©2005 Operating System Concepts Chapter 2: Operating-System Structures Operating.
1 CS.217 Operating System By Ajarn..Sutapart Sappajak,METC,MSIT Chapter 3 Operating-System Structures Slide 1 Chapter 3 Operating-System Structures.
Silberschatz, Galvin and Gagne ©2009 Operating System Concepts – 8 th Edition, Chapter 2: Operating-System Structures.
Silberschatz, Galvin and Gagne ©2009 Operating System Concepts – 8 th Edition, Chapter 2: Operating-System Structures.
2.1 Silberschatz, Galvin and Gagne ©2009 Operating System Concepts – 8 th Edition System Programs (p73) System programs provide a convenient environment.
Chapter 2: Operating-System Structures. 2.2 Silberschatz, Galvin and Gagne ©2005 Operating System Concepts Chapter 2: Operating-System Structures Operating.
Chapter 2: Operating-System Structures. 2.2 Silberschatz, Galvin and Gagne ©2005 Operating System Concepts Chapter 2: Operating-System Structures Operating.
2.1 Silberschatz, Galvin and Gagne ©2005 Operating System Principles Chapter 2: System Structures To describe the services an operating system provides.
Silberschatz, Galvin and Gagne ©2013 Operating System Concepts – 9 th Edition Lecture 8 Chapter 2: Operating-System Structures Provided & Updated by Sameer.
1 Chapter 2: Operating-System Structures. 2 Operating System Services User Operating System Interface System Calls Types of System Calls System Programs.
1 Chapter 2: Operating-System Structures Services Interface provided to users & programmers –System calls (programmer access) –User level access to system.
Silberschatz, Galvin and Gagne  Operating System Concepts Chapter 3: Operating-System Structures System Components Operating System Services.
Topic 2 (Textbook - Chapter 2) Operating-System Structures
Chapter 2: Operating-System Structures
OPERATING SYSTEM CONCEPTS AND PRACTISE
Chapter 2: System Structures
Chapter 2: Operating-System Structures
Chapter 2: Operating-System Structures
Chapter 2: Operating-System Structures
Chapter 2: System Structures
Outline Chapter 2 (cont) OS Design OS structure
System calls….. C-program->POSIX call
Chapter 2: Operating-System Structures
Presentation transcript:

Chapter 2. System Structures Operating System Concepts 8th Edition Chapter 2. System Structures Gan Lin, OSLab. GNU

- Ch.2 System Structures - Contents 2.1 Operating-System Services 2.2 User Operating-System Interface 2.3 System Calls 2.4 Types of System Calls 2.5 System Programs 2.6 Operating-System Design and Implementation 2.7 Operating-System Structure 2.8 Virtual Machines 2.9 Operating-System Debugging 2.10 Operating-System Generation 2.11 System Boot 2.12 Summary 2017/4/26 - Ch.2 System Structures -

- Ch.2 System Structures - Objectives To describe the services an operating system provides to users, processes, and other systems. To discuss the various ways of structuring an operating system. To explain how operating systems are installed and customized and how they boot. 2017/4/26 - Ch.2 System Structures -

2.1 Operating-System Services user and other system programs GUI batch command line user interface system calls program execution I/O operations file systems communication resource allocation accounting error detection protection & security services operating system hardware Fig. 2.1 A view of operating system services 2017/4/26 - Ch.2 System Structures -

2.2 User Operating-System Interface Command Interpreter Graphical User Interfaces 2017/4/26 - Ch.2 System Structures -

- Ch.2 System Structures - 2.3 System Calls Example System Call Sequence Acquire input file name Write prompt to screen Accept input Acquire output file name Open the input file if file doesn't exits, abort Create out file if file exits, abort Loop Read from input file Write to output file Until read fails Close output file Write completion message to screen Terminate normally source file Fig. 2.2 Example of how system calls are used destination file 2017/4/26 - Ch.2 System Structures -

- Ch.2 System Structures - 2.3 System Calls API(Application Programming Interface) - Win32 API, POSIX API, and Java API return value BOOL ReadFile c (HANDLE file, LPVOID buffer, DWORD bytes To Read, LPDWORD bytes Read, LPOVERLAPPED ovl); parameters function name Fig. 2.3 The API for the ReadFile() function 2017/4/26 - Ch.2 System Structures -

- Ch.2 System Structures - 2.3 System Calls System-call interface user application open() user mode system call interface kernel mode . open() Implementation of open() system call … return i . Fig.2.4 The handling of a user application invoking the open() system call 2017/4/26 - Ch.2 System Structures -

- Ch.2 System Structures - 2.4 Types of System Calls Windows Unix Process Control CreateProcess() fork() ExitProcess() exit() WaitForSingleObject() wait() File Manipulation CreateFile() open() ReadFile() read() WriteFile() write() CloseHandle() close() Device Manipulation SetConsoleMode() ioctl() ReadConsole() WriteConsole() Information Maintenance GetCurrentProcessID() getpid() SetTimer() alarm() Sleep() sleep() Communication CreatePipe() pipe() CreateFileMapping() shmget() MapViewOfFile() mmap() Protection SetFileSecurity() chmod() InitlializeSecurityDescriptor() umask() SetSecurityDescriptorGroup() chown() 2017/4/26 - Ch.2 System Structures -

- Ch.2 System Structures - 2.5 System Programs File management -create, delete, copy, rename, print, dump, list, and generally manipulate files and directories Status information -ask data, time, memory, disk, and user and such information File modification -create, modify and search the contents of the files 2017/4/26 - Ch.2 System Structures -

- Ch.2 System Structures - 2.5 System Programs File management -create, delete, copy, rename, print, dump, list, and generally manipulate files and directories Status information -ask data, time, memory, disk, and user and such information File modification -create, modify and search the contents of the files 2017/4/26 - Ch.2 System Structures -

- Ch.2 System Structures - 2.5 System Programs Programming-language support -compilers, assemblers, debuggers and interpreters Program loading and execution -absolute loaders, relocatable loaders, linkage editors and overlay loaders Communications -create virtual connections among processes, users, and computer systems. 2017/4/26 - Ch.2 System Structures -

- Ch.2 System Structures - 2.6 Operating-System Design and Implementation Design Goals Mechanisms and Policies Implementation 2017/4/26 - Ch.2 System Structures -

2.7 Operating-System Structure Simple Structure Application program Resident system program MS-DOS device drivers Application program Fig. 2.5 MS-DOS layer structure 2017/4/26 - Ch.2 System Structures -

2.7 Operating-System Structure Layered Approach layer N user interface layer 1 layer 0 hardware Fig. 2.6 A layered operating system 2017/4/26 - Ch.2 System Structures -

2.7 Operating-System Structure Microkernels -Mach: remove all nonessential components from the kernel and implement them as system and user-level programs. -provide a communication facility between the client program and the various services that are also running in user space. -easy to extend the operating system 2017/4/26 - Ch.2 System Structures -

2.7 Operating-System Structure Modules scheduling classes device and bus drivers file systems Core Solaris kernel miscellaneous modules loadable system call STREAMS modules executable formats Fig. 2.7 Solaris loadable modules 2017/4/26 - Ch.2 System Structures -

2.10 Operating-System Generation An operating system is designed to run on any of a class of machines at a variety of sites with a variety of peripheral configurations. SYSGEN(system generation) -reads from a given file, or ask for information. 2017/4/26 - Ch.2 System Structures -

- Ch.2 System Structures - 2.11 System Boot Bootstrap program/loader -a small piece of code which locates the kernel and loads it into main memory, and starts its execution. 1.Powered up 2.IR load a predefined location 3.Bootstrap perform a variety of tasks(diagnostics) 4.Start the operating system 2017/4/26 - Ch.2 System Structures -