EEE 435 Principles of Operating Systems Operating System Concepts (Modern Operating Systems 1.5)

Slides:



Advertisements
Similar presentations
OPERATING SYSTEMS Lecturer: Szabolcs Mikulas Office: B38B
Advertisements

Processes and Threads Chapter 3 and 4 Operating Systems: Internals and Design Principles, 6/E William Stallings Patricia Roy Manatee Community College,
Threads, SMP, and Microkernels
EEE 435 Principles of Operating Systems Structure of I/O Software Pt II (Modern Operating Systems & 5.3.4)
EEE 435 Principles of Operating Systems Interprocess Communication Pt II (Modern Operating Systems 2.3)
EEE 435 Principles of Operating Systems Principles and Structure of I/O Software (Modern Operating Systems 5.2 & 5.3) 5/22/20151Dr Alain Beaulieu.
Computer Systems/Operating Systems - Class 8
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.
Enrique Blanco García © 2004 Introduction to the UNIX environment Enrique Blanco Cover from the book Modern operating systems. A. Tanenbaum.
1 Case Study 1: UNIX and LINUX Chapter History of unix 10.2 Overview of unix 10.3 Processes in unix 10.4 Memory management in unix 10.5 Input/output.
1 CS 333 Introduction to Operating Systems Class 2 – OS-Related Hardware & Software The Process Concept Jonathan Walpole Computer Science Portland State.
CS 104 Introduction to Computer Science and Graphics Problems Operating Systems (4) File Management & Input/Out Systems 10/14/2008 Yang Song (Prepared.
Introduction to Kernel
I/O Hardware n Incredible variety of I/O devices n Common concepts: – Port – connection point to the computer – Bus (daisy chain or shared direct access)
Review: Operating System Manages all system resources ALU Memory I/O Files Objectives: Security Efficiency Convenience.
2: OS Structures 1 Jerry Breecher OPERATING SYSTEMS STRUCTURES.
Advanced OS Chapter 3p2 Sections 3.4 / 3.5. Interrupts These enable software to respond to signals from hardware. The set of instructions to be executed.
Introduction Operating Systems’ Concepts and Structure Lecture 1 ~ Spring, 2008 ~ Spring, 2008TUCN. Operating Systems. Lecture 1.
CS4315A. Berrached:CMS:UHD1 Operating System Structures Chapter 3.
1 I/O Management in Representative Operating Systems.
Process Description and Control A process is sometimes called a task, it is a program in execution.
Chapter 13: I/O Systems I/O Hardware Application I/O Interface
An Introduction to Operating Systems. Definition  An Operating System, or OS, is low-level software that enables a user and higher-level application.
I/O Tanenbaum, ch. 5 p. 329 – 427 Silberschatz, ch. 13 p
Chapter 51 Threads Chapter 5. 2 Process Characteristics  Concept of Process has two facets.  A Process is: A Unit of resource ownership:  a virtual.
Chapter 3 Operating Systems Introduction to CS 1 st Semester, 2015 Sanghyun Park.
Chapter 3 Process Description and Control Operating Systems: Internals and Design Principles, 6/E William Stallings Patricia Roy Manatee Community College,
OPERATING SYSTEM OVERVIEW. Contents Basic hardware elements.
Chapter 3 Process Description and Control Operating Systems: Internals and Design Principles, 6/E William Stallings Patricia Roy Manatee Community College,
CSC 322 Operating Systems Concepts Lecture - 4: by Ahmed Mumtaz Mustehsan Special Thanks To: Tanenbaum, Modern Operating Systems 3 e, (c) 2008 Prentice-Hall,
Introduction to Operating Systems Chapter 1. cs431 -cotter2 Lecture Objectives Understand the relationship between computing hardware, operating system,
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.
Chapter 1 Introduction 1.1 What is an operating system
Contact Information Office: 225 Neville Hall Office Hours: Monday and Wednesday 12:00-1:00 E-Main: Phone:
MODERN OPERATING SYSTEMS Chapter 1 Introduction Tanenbaum, Modern Operating Systems 3 e, (c) 2008 Prentice-Hall, Inc. All rights reserved
File Systems (1). Readings r Reading: Disks, disk scheduling (3.7 of textbook; “How Stuff Works”) r Reading: File System Implementation ( of textbook)
Lecture 3 Process Concepts. What is a Process? A process is the dynamic execution context of an executing program. Several processes may run concurrently,
1 Pertemuan 3 Konsep Sistem Operasi Matakuliah: T0316/sistem Operasi Tahun: 2005 Versi/Revisi: 5.
Hardware process When the computer is powered up, it begins to execute fetch-execute cycle for the program that is stored in memory at the boot strap entry.
Slide 3-1 Copyright © 2004 Pearson Education, Inc. Operating Systems: A Modern Perspective, Chapter 3.
1 Threads, SMP, and Microkernels Chapter Multithreading Operating system supports multiple threads of execution within a single process MS-DOS.
Operating System Structure A key concept of operating systems is multiprogramming. –Goal of multiprogramming is to efficiently utilize all of the computing.
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.
1 Computer Systems II Introduction to Processes. 2 First Two Major Computer System Evolution Steps Led to the idea of multiprogramming (multiple concurrent.
UNIX Unit 1- Architecture of Unix - By Pratima.
A+ Guide to Managing and Maintaining Your PC Fifth Edition Chapter 2 How Hardware and Software Work Together.
UNIX & Windows NT Name: Jing Bai ID: Date:8/28/00.
Copyright © Curt Hill Operating Systems An Introductory Overview.
Chapter 2 Process Management. 2 Objectives After finish this chapter, you will understand: the concept of a process. the process life cycle. process states.
1 Process Description and Control Chapter 3. 2 Process A program in execution An instance of a program running on a computer The entity that can be assigned.
Chapter 1 Introduction  What is an operating system  History of operating systems  The operating system zoo  Computer hardware review  Operating system.
What is an operating system? Tool to make programmer's job easy Resource allocator – Must be fair; not partial to any process – Must discriminate between.
Concepts and Structures. Main difficulties with OS design synchronization ensure a program waiting for an I/O device receives the signal mutual exclusion.
MINIX Presented by: Clinton Morse, Joseph Paetz, Theresa Sullivan, and Angela Volk.
Threads, SMP, and Microkernels Chapter 4. Processes and Threads Operating systems use processes for two purposes - Resource allocation and resource ownership.
CSCI/CMPE 4334 Operating Systems Review: Exam 1 1.
Processes and Threads Chapter 3 and 4 Operating Systems: Internals and Design Principles, 6/E William Stallings Patricia Roy Manatee Community College,
Introduction to Operating Systems Concepts
Introduction to Kernel
Process Management Process Concept Why only the global variables?
Avani R.Vasant V.V.P. Engineering College
Chapter 4 Threads.
Structure of Processes
OPERATING SYSTEMS DESIGN AND IMPLEMENTATION Third Edition ANDREW S
Operating Systems Chapter 5: Input/Output Management
Mid Term review CSC345.
Lecture Topics: 11/1 General Operating System Concepts Processes
Threads Chapter 4.
Introduction to Operating Systems
Outline Operating System Organization Operating System Examples
Presentation transcript:

EEE 435 Principles of Operating Systems Operating System Concepts (Modern Operating Systems 1.5)

5/3/2015Dr Alain Beaulieu Quick Review How do we protect programs from each other and the kernel from user programs? What is the sequence of events when an interrupt occurs? 2

5/3/2015Dr Alain Beaulieu Outline Processes Deadlocks Memory Management Input/Output Files Security The Shell 3

5/3/2015Dr Alain Beaulieu Processes A Process is a program in execution. Associated information: The process’ address space Executable program Program Data Stack Set of registers: generic, PC, SP Priority (to be examined in Scheduling) 4

5/3/2015Dr Alain Beaulieu Processes In a timesharing system the operating system will suspend processes and wake others All information about the process must be saved for later restoration Much of the information is put into a structure called a Process Table A Process Table will exist for each process and are grouped together as an array or a linked list 5

5/3/2015Dr Alain Beaulieu Processes Many operating systems allow for the creation of Child Processes When those processes also create children a tree structure of processes forms: 6

5/3/2015Dr Alain Beaulieu Processes Process cooperating to complete a chore must communicate to synchronize their activities. This is referred to as Interprocess Communication Some Operating Systems allow processes to receive signals from the OS that are the software equivalent of Interrupts. These are referred to as Alarm Signals 7

5/3/2015Dr Alain Beaulieu Processes Many operating systems assign User Identifications (UIDs) to each person (ie: a login name) Processes started have the UID of the person who started it. This can affect what features of the operating system the process is allowed to access. Users can be members of groups, each of which has a GID (Group Identification) 8

5/3/2015Dr Alain Beaulieu Deadlocks When multiple processes are interacting it is possible that they can enter a state in which none of them may continue 9

5/3/2015Dr Alain Beaulieu Deadlocks Example: CD-ROM and Tape Drive 10

5/3/2015Dr Alain Beaulieu Memory Management From the review of computer hardware, we saw that multiple programs can be in memory simultaneously How much memory is allocated per process? One solution for a max of N processes: If this much memory is allocated then there will be enough for each process. 11

5/3/2015Dr Alain Beaulieu Memory Management Problems? This wastes memory when less than N processes are running Limits all process to an artificially small size Limits the number of process that may execute Solution? Virtual memory: part of the address space is maintained on the disk and moved between disk and main memory when required 12

5/3/2015Dr Alain Beaulieu Input/Output The OS must manage the large number of devices connected to the computer An I/O subsystem exists for this purpose Some of this system is device independent Some (the drivers) is specific to specific devices Examined further much later in the course 13

5/3/2015Dr Alain Beaulieu Files File system of some sort supported by virtually all operating systems Operating systems hide the peculiarities the system to provide the operator with a device- independent abstract model Most operating systems use the concept of a directory to group files together 14

5/3/2015Dr Alain Beaulieu Files 15

5/3/2015Dr Alain Beaulieu Files System calls required for: File opening, closing, creation, deletion, reading, and writing Directory creation and deletion Addition/removal of files to and from directories The root directory is the top of the hierarchy Path name can always be specified relative to the root directory \winnt\system32\ftp 16

5/3/2015Dr Alain Beaulieu Files Each process has a Working Directory Path names not beginning with a slash look for the file relative to the working directory cd \winnt system32\ftp File systems can often be mounted (*NIX) DOS solution is not elegant; exposes the specifics of the device to the user a:\setup.exe 17

5/3/2015Dr Alain Beaulieu Files Mounted disks appear as part of the main file system Directory “b” often called “cdrom” or “floppy” but could be named “Fred the tape guy” 18

5/3/2015Dr Alain Beaulieu Files Some operating systems treat I/O as files Simplifies the interface for the programmer Devices such as disks are treated as Block Special Files, which allow randomly addressable memory space Devices such as modems or printers are treated as Character Special Files as they accept or provide a stream of characters 19

5/3/2015Dr Alain Beaulieu Security Different operating systems offer varying levels of security Files in Unix protected by a 9-bit code USER GROUP WORLD rwx rwx rwx In a directory, x indicates search permission This is just the beginnings of concerns in the creation of a secure system! 20

5/3/2015Dr Alain Beaulieu The Shell Is it part of the operating system? No, but closely linked On non-GUI systems the shell is where commands are interpreted and is the primary user interface The cmd window we use in the labs is a shell for the Windows OS 21

5/3/2015Dr Alain Beaulieu Quiz Time! Questions? 22