STRUCTURE OPERATING SYSTEMS. I. PROCESS MANAGEMENT Process a program in execution More than one process can be associated with a single program Each is.

Slides:



Advertisements
Similar presentations
Operating Systems Components of OS
Advertisements

Interactive lesson about operating system
Operating Systems (CSCI2413) Lecture 2 Overview phones off (please)
Operating System Structures
Slide 2-1 Copyright © 2004 Pearson Education, Inc. Operating Systems: A Modern Perspective, Chapter 2 Using the Operating System 2.
SLC/Ver1.0/OS CONCEPTS/Oct'991INTRODUCTION What is an Operating System? Operating Structure -System Components -OS Services -System Calls & Programs -System.
Operating System Structure
Lecture Objectives: 1)Explain the limitations of flash memory. 2)Define wear leveling. 3)Define the term IO Transaction 4)Define the terms synchronous.
3: OS Structures 1 OPERATING SYSTEM STRUCTURES PROCESS MANAGEMENT A process is a program in execution: (A program is passive, a process active.) A process.
Operating System - Overview Lecture 2. OPERATING SYSTEM STRUCTURES Main componants of an O/S Process Management Main Memory Management File Management.
Operating System and Computer Organization Background CS 502 Spring 99 WPI MetroWest/Southboro Campus.
ICS Principles of Operating Systems
2: OS Structures 1 Jerry Breecher OPERATING SYSTEMS STRUCTURES.
Cs238 Lecture 3 Operating System Structures Dr. Alan R. Davis.
Common System Components
1 Introduction Chapter What is an operating system 1.2 History of operating systems 1.3 The operating system zoo 1.4 Computer hardware review 1.5.
Chapter 2: Using the Operating System. The Airplane Pilot’s Abstract Machine.
1 Operating Systems Ch An Overview. Architecture of Computer Hardware and Systems Software Irv Englander, John Wiley, Bare Bones Computer.
Silberschatz, Galvin and Gagne  Operating System Concepts Common System Components Process Management Main Memory Management File Management.
What do operating systems do? manage processes manage memory and computer resources provide security features execute user programs make solving user.
Chapter 13: I/O Systems I/O Hardware Application I/O Interface
General Information Class time (NC 441)
Process Management A process is a program in execution. It is a unit of work within the system. Program is a passive entity, process is an active entity.
Operating Systems Lecture 3 Computer Systems Review
CHAPTER 2 OPERATING SYSTEM OVERVIEW 1. Operating System Operating System Definition A program that controls the execution of application programs and.
Module 1.1: Operating-System Structures
OPERATING SYSTEM OVERVIEW. Contents Basic hardware elements.
Chapter 3: Operating-System Structures System Components Operating System Services System Calls System Programs System Structure Virtual Machines System.
UNIX and Shell Programming (06CS36)
Windows Operating System Internals - by David A. Solomon and Mark E. Russinovich with Andreas Polze Unit OS6: Device Management 6.1. Principles of I/O.
OS provide a user-friendly environment and manage resources of the computer system. Operating systems manage: –Processes –Memory –Storage –I/O subsystem.
SYSTEM SOFTWARE Prepared by: Mrs. Careene McCallum-Rodney.
Composition and Evolution of Operating Systems Introduction to Operating Systems: Module 2.
Silberschatz, Galvin and Gagne  Operating System Concepts Chapter 3: Operating-System Structures System Components 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 and Galvin  Operating System Concepts Module 3: Operating-System Structures System Components Operating System Services System Calls.
Computers Operating System Essentials. Operating Systems PROGRAM HARDWARE OPERATING SYSTEM.
Silberschatz, Galvin and Gagne  Operating System Concepts Chapter 3: Operating-System Structures System Components Operating System Services.
Distributed System Concepts and Architectures 2.3 Services Fall 2011 Student: Fan Bai
OS, , Part I Operating - System Structures Department of Computer Engineering, PSUWannarat Suntiamorntut.
1 CSE Department MAITSandeep Tayal Operating-System Structures System Components Operating System Services System Calls System Programs System Structure.
UNIX and Shell Programming
1.4 Hardware Review. CPU  Fetch-decode-execute cycle 1. Fetch 2. Bump PC 3. Decode 4. Determine operand addr (if necessary) 5. Fetch operand from memory.
UNIX Unit 1- Architecture of Unix - By Pratima.
BIT213,CISY Operating Systems 1
Chapter 1 Introduction  What is an operating system  History of operating systems  The operating system zoo  Computer hardware review  Operating system.
Silberschatz, Galvin, and Gagne  Applied Operating System Concepts Module 3: Operating-System Structures System Components Operating System Services.
Introduction to Operating System. 1.1 What is Operating System? An operating system is a program that manages the computer hardware. It also provides.
MINIX Presented by: Clinton Morse, Joseph Paetz, Theresa Sullivan, and Angela Volk.
 PROCESS MANAGEMENT  A process is a program in execution: (A program is passive, a process active.)  A process has resources (CPU time, files) and.
First lecture.  Lecture note  ELearning web site :  Abraham Silberschatz, Peter B. Galvin, Greg Gagne, “Operating.
Operating System (Reference : OS[Silberschatz] + Norton 6e book slides)
System Components Operating System Services System Calls.
Operating System Structure Lecture: - Operating System Concepts Lecturer: - Pooja Sharma Computer Science Department, Punjabi University, Patiala.
OPERATING SYSTEMS STRUCTURES Jerry Breecher 2: Operating System Structures 1.
Introduction to Operating Systems Concepts
Chapter 2: Operating System Structures
Module 3: Operating-System Structures
Chapter 13: I/O Systems Modified by Dr. Neerja Mhaskar for CS 3SH3.
Avani R.Vasant V.V.P. Engineering College
Protection of System Resources
Operating Systems (CS 340 D)
Operating System Structure
Chapter 3: Operating-System Structures
OS Concepts Module 1.4 Richard Newman University of Florida.
Chapter 1 Introduction to Operating System Part 5
Chapter 2: Operating-System Structures
Introduction to Operating Systems
Chapter 2: Operating-System Structures
III. Operating System Structures
Presentation transcript:

STRUCTURE OPERATING SYSTEMS

I. PROCESS MANAGEMENT Process a program in execution More than one process can be associated with a single program Each is a separate execution sequence All processes can potentially execute concurrently O/S Tasks Creation/deletion of processes Suspension and resumption of processes Process synchronization Interprocess communication Deadlock detection

II. MEMORY MANAGEMENT RAM Array of words or bytes, each with its own address Loosely speaking, the only storage device the CPU can address directly (forgetting about cache) Many programs are in memory at the same time O/S Tasks Keep track of which pieces of memory are being used and by whom Decide which processes are to be loaded into memory Allocate/deallocate memory to processes

III. FILE SYSTEM MANAGEMENT (1) Provides a uniform logical view of information storage O/S Tasks Creation/Deletion of files Creation/Deletion of directories Map files onto secondary storage Backup files onto stable media

III. FILE SYSTEM MANAGEMENT (2) A file system for a university department. Tanenbaum & Bo, Modern Operating Systems:4th ed., (c) 2013 Prentice-Hall, Inc. All rights reserved.

III. FILE SYSTEM MANAGEMENT (3) To be accessible, files must be mounted (a) before mount. (b) after mount Tanenbaum & Bo, Modern Operating Systems:4th ed., (c) 2013 Prentice-Hall, Inc. All rights reserved.

IV. PROTECTION Ensure that these can only be manipulated by processes with proper authority Files Memory CPU

V. I/O DEVICE MANAGEMENT (1) A controller is hardware : The electronic component of a device. It has a standard interface (SATA, SCSI, USB, etc.). The controller translates input from software into something a device understands. Controllers can have memory and a processor. NICs and graphic cards are controllers. A Device drivers is software : provides an interface between the controller and the OS.

V. I/O DEVICE MANAGEMENT (2) SUBTLE PROBLEMS Problem 1: Getting device driver into kernel At boot time, OS detects controllers, finds the drivers it needs and loads them OS detects controllers and loads drivers on the fly—thumb drives Problem 2: OS issues i/o request Busy/Wait driver starts i/o and sits in tight loop polling device i/o completes and driver alerts OS Problem: wastes CPU cycles Interrupt driver starts the device. Is interrupted when i/o completes Problem: the interrupt handler is interrupted by another device Solution: When processing an interrupt, disable interrupts. The devices continue to assert interrupt signals, but the CPU does not respond until interrupts are enabled.

VI. COMMAND INTERPRETER Programmer interface to the o/s Shell Logging on creates a process on your behalf $ indicates waiting for input Issue a command (e.g., cp), shell starts a child process  called a system call

VII. SYSTEM CALLS (1) Provides an interface between a running program and the o/s To be distinguished from the shell. System calls occur within a program Every subsystem of the o/s has its own set of system calls

VII. SYSTEM CALLS (2) FILE MANAGEMENT EXAMPLE #include int main(int argc, char* argv[]) { int inFile, outFile; int len; char ch; if (argc != 3) { printf("Usage: copy \n"); exit(1); } inFile = open(argv[1], O_RDONLY); outFile = open(argv[2], O_WRONLY | O_CREAT, S_IRWXU); while ((len = read(inFile, &ch, 1)) > 0) { write(outFile, &ch, 1); } close(inFile); close(outFile); return 0; }

VII. SYSTEM CALL (3) PROCESS MANAGEMENT Processes are created through other processes As early as 1963, researchers postulated 3 process creation functions fork() – create a process join() – merge two processes quit() – terminate a process

THERE IS MUCH,MUCH MORE