Operating Systems David Goldschmidt, Ph.D. Computer Science The College of Saint Rose CIS 432.

Slides:



Advertisements
Similar presentations
Operating Systems Components of OS
Advertisements

Operating-System Structures
Operating System Structures
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.
Chapter 2: Operating-System Structures
Figure 1.1 Interaction between applications and the operating system.
Cs238 Lecture 3 Operating System Structures Dr. Alan R. Davis.
OPERATING SYSTEMS Introduction
Rensselaer Polytechnic Institute CSC 432 – Operating Systems David Goldschmidt, Ph.D.
Silberschatz, Galvin and Gagne ©2009 Operating System Concepts – 8 th Edition Chapter 2: Operating-System Structures Modified from the text book.
Silberschatz, Galvin and Gagne ©2009 Operating System Concepts – 8 th Edition, Chapter 2: Operating-System Structures.
Rensselaer Polytechnic Institute CSCI-4210 – Operating Systems David Goldschmidt, Ph.D.
Silberschatz, Galvin and Gagne ©2009 Operating System Concepts – 8 th Edition, Chapter 2: System Structures.
Chapter 3: Operating-System Structures System Components Operating System Services System Calls System Programs System Structure Virtual Machines System.
Chapter 2: Operating-System Structures. 2.2 Silberschatz, Galvin and Gagne ©2005 Operating System Concepts – 7 th Edition, Jan 14, 2005 Operating System.
OS provide a user-friendly environment and manage resources of the computer system. Operating systems manage: –Processes –Memory –Storage –I/O subsystem.
Rensselaer Polytechnic Institute CSCI-4210 – Operating Systems CSCI-6140 – Computer Operating Systems David Goldschmidt, Ph.D.
1 Operating System Overview. 2 Today’s Objectives Explain the main purpose of operating systems and describe milestones of OS evolution Explain fundamental.
Chapter 2: Operating-System Structures. 2.2 Silberschatz, Galvin and Gagne ©2005 Operating System Concepts Chapter 2: Operating-System Structures Operating.
Rensselaer Polytechnic Institute CSCI-4210 – Operating Systems David Goldschmidt, Ph.D.
2.1 Silberschatz, Galvin and Gagne ©2005 Operating System Concepts Chapter 2: Operating-System Structures Overview of topics covered Operating System Services.
Lecture 3 Process Concepts. What is a Process? A process is the dynamic execution context of an executing program. Several processes may run concurrently,
Silberschatz, Galvin and Gagne ©2009 Operating System Concepts – 8 th Edition, Chapter 2: Operating-System Structures.
Silberschatz, Galvin and Gagne ©2013 Operating System Concepts – 9 th Edition Chapter 2: Operating-System Structures.
CE Operating Systems Lecture 3 Overview of OS functions and structure.
Operating-System Structures. Operating System Services Operating systems provide an environment for execution of programs and services to programs and.
Operating Systems David Goldschmidt, Ph.D. Computer Science The College of Saint Rose CIS 432.
Distributed System Concepts and Architectures 2.3 Services Fall 2011 Student: Fan Bai
Operating Systems Lecture November 2015© Copyright Virtual University of Pakistan 2 Agenda for Today Review of previous lecture Hardware (I/O, memory,
Shan Gao Fall 2007 Department of Computer Science Georgia State University.
Silberschatz, Galvin and Gagne  Operating System Concepts UNIT II Operating System Services.
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: System Structures.
Major OS Components CS 416: Operating Systems Design, Spring 2001 Department of Computer Science Rutgers University
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.
Chapter 3: Operating-System Structures
Topic 2 (Textbook - Chapter 2) Operating-System Structures
Computer System Structures
Introduction to threads
Operating Systems {week 01.b}
Chapter 2:Operating System Structures
Virtual Machine Monitors
2. OPERATING SYSTEM 2.1 Operating System Function
Chapter 2: Operating-System Structures
Chapter 2: System Structures
Operating System Structure
Introduction to Operating System (OS)
What is an Operating System?
Chapter 2: Operating-System Structures
Chapter 2: Operating-System Structures
Chapter 2: Operating-System Structures
Chapter 2: Operating-System Structures
Ch 2 - Overview Interacting with services provided by the OS
Chapter 2: System Structures
Outline (Chapters 1 and 2)
Chapter 2: Operating-System Structures
Operating Systems Lecture 3.
Introduction to Operating Systems
Outline Chapter 2 (cont) OS Design OS structure
Chapter 2: Operating-System Structures
Chapter 2: Operating-System Structures
Outline Operating System Organization Operating System Examples
System calls….. C-program->POSIX call
Chapter 2: Operating-System Structures
Chapter 2: Operating-System Structures
Presentation transcript:

Operating Systems David Goldschmidt, Ph.D. Computer Science The College of Saint Rose CIS 432

Operating System Services An operating system provides services to its users: Program execution Load programs into memory, run/suspend/halt programs, handle/display errors I/O operations Seamlessly interact with I/O devices, including disks, networks connection, etc. Filesystem manipulation Read/write/traverse filesystem directories, read/write files, enforce permissions, search for files, etc.

Operating System Services Other services an operating system provides: Inter-Process Communications (IPC) Processes exchange information via shared memory, message passing, sockets, pipes, files, etc. Might span multiple computer systems Error detection and recovery Errors arise in CPU, memory, I/O devices, processes, etc. Operating system should detect and recover from errors, ensuring correct and consistent operations

Operating System Structure Using a layered approach, the operating system is divided into N levels or layers Layer 0 is the hardware Layer N is the top-level user interface Each layer uses functions and services of lower layers Layer 1 often is the kernel

Operating System Structure

Operating System Kernel The core program running in an operating system is the kernel When a computer is switched on, a bootstrap program executes from ROM Bootstrap program initializes all aspects of the system, then loads the operating system kernel and starts its execution

User and Kernel Modes Dual-mode operation provides a user mode and a kernel mode of operation Allows the operating system to protect itself and other system components

User and Kernel Modes Kernel relinquishes control to a user process, but may set a timer to ensure a process does not run beyond its allotted time Avoid infinite loops, memory leaks, memory hogs, etc. Not entirely effective in practice? How many times have you fought to stop a runaway process? Kernel also provides security via privileged instructions

System Calls via APIs Operating system services available to users via GUI and CLI, which are just software programs System calls are made via programming interface called an Application Program Interface (API) Common operating system APIs: Win32 API for Windows POSIX API for POSIX-based systems, including UNIX, Linux, Mac OS X Java API for Java Virtual Machine C++ Standard Library

System Calls via APIs Types of system calls include: Process control (e.g. start/suspend/stop a process) Debugging information, too File management Device management Information retrieval and maintenance Current date/time, number of current users, OS version, amount of free memory, process information, etc. Communications (e.g. IPC, network)

System Calls via APIs System call sequence for a file copy program:

System Calls via APIs An API successfully hides the implementation details of the operating system Programmers just need to abide by the API specifications Change the operating system, but maintain the API such that it is backwards compatible Deprecate old behavior over long period of time  Why? hey, the dude abides, man

System Calls via APIs

Example using the printf() function from C One API may call another, which may call another, etc.

System Calls via APIs Pass parameters to the operating system via registers or a block of data in memory