Operating Systems Terms and Definitions. Chapter Objectives After completing these slides you will: You will have a better understanding of the role of.

Slides:



Advertisements
Similar presentations
Interactive lesson about operating system
Advertisements

Processes Management.
Operating System Structures
Memory Management All data in memory before and after processing
Chap 2 System Structures.
SLC/Ver1.0/OS CONCEPTS/Oct'991INTRODUCTION What is an Operating System? Operating Structure -System Components -OS Services -System Calls & Programs -System.
Operating-System Structures
1 School of Computing Science Simon Fraser University CMPT 300: Operating Systems I Dr. Mohamed Hefeeda.
Operating System Concepts with Java – 7 th Edition, Nov 15, 2006 Silberschatz, Galvin and Gagne ©2007 Chapter 1: Introduction.
Silberschatz, Galvin and Gagne  Operating System Concepts Chapter 3: Operating-System Structures System Components Operating System Services.
Operating Systems Chapter 1.
1/28/2004CSCI 315 Operating Systems Design1 Operating System Structures & Processes Notice: The slides for this lecture have been largely based on those.
Modified from Silberschatz, Galvin and Gagne ©2009 CS 446/646 Principles of Operating Systems Lecture 1 Chapter 1: Introduction.
Common System Components
Lecture 1: Introduction CS170 Spring 2015 Chapter 1, the text book. T. Yang.
1/21/2010CSCI 315 Operating Systems Design1 Computer System Structures Notice: The slides for this lecture have been largely based on those accompanying.
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.
What do operating systems do? manage processes manage memory and computer resources provide security features execute user programs make solving user.
General Information Class time (NC 441)
Chapter 1: Introduction. 1.2 Silberschatz, Galvin and Gagne ©2005 Operating System Concepts What is an Operating System? A program that acts as an intermediary.
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.
Introduction. 1.2 Silberschatz, Galvin and Gagne ©2005 Operating System Concepts Chapter 1: Introduction What Operating Systems Do Computer-System Organization.
Silberschatz, Galvin and Gagne ©2009 Operating System Concepts – 8 th Edition, Chapter 1: Introduction.
Objectives To provide a grand tour of the major operating systems components To provide coverage of basic computer system organization.
Silberschatz, Galvin and Gagne ©2009 Operating System Concepts – 8 th Edition Chapter 1: Introduction.
Computer System Organization and Operating Systems.
UNIX and Shell Programming (06CS36)
Silberschatz, Galvin and Gagne ©2009 Edited by Khoury, 2015 Operating System Concepts – 9 th Edition, Chapter 1: Introduction.
OS provide a user-friendly environment and manage resources of the computer system. Operating systems manage: –Processes –Memory –Storage –I/O subsystem.
Chapter 1: Introduction. 1.2 Silberschatz, Galvin and Gagne ©2005 Operating System Concepts Chapter 1: Introduction What Operating Systems Do Computer-System.
Silberschatz, Galvin and Gagne  Operating System Concepts Chapter 3: Operating-System Structures System Components Operating System Services.
Silberschatz and Galvin  Operating System Concepts Module 3: Operating-System Structures System Components Operating System Services System Calls.
Mid Term review CSC345.
Silberschatz, Galvin and Gagne  Operating System Concepts Chapter 3: Operating-System Structures System Components Operating System Services.
Silberschatz, Galvin, and Gagne  Applied Operating System Concepts Module 3: Operating-System Structures System Components Operating System Services.
3.1 Operating System Chapter 3: Operating-System Structures System Components Operating System Services System Calls System Programs System Structure Virtual.
1 Chapter 1: Introduction. 2 What Operating Systems Do Computer-System Organization Computer-System Architecture Operating-System Structure Operating-System.
Operating Systems Structure what is the organizational principle?
Company Confidential 1 Operating Systems. Chapter 1: Introduction What Operating Systems Do Computer-System Organization Computer-System Architecture.
1.1 Silberschatz, Galvin and Gagne ©2009 Operating System Concepts – 8 th Edition Caching Important principle, performed at many levels in a computer (in.
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.
Operating System Principles And Multitasking
UNIX and Shell Programming
1 CS.217 Operating System By Ajarn..Sutapart Sappajak,METC,MSIT Chapter 3 Operating-System Structures Slide 1 Chapter 3 Operating-System Structures.
Chapter 1. Introduction. 1.2 Silberschatz, Galvin and Gagne ©2005 Operating System Concepts – 7 th Edition, Jan 12, 2005 Introduction Introduction What.
Operating Systems Introduction to Operating System (OS)
Chapter 1: Introduction. 1.2 What is an Operating System? A program that acts as an intermediary between a user of a computer and the computer hardware.
Assoc. Prof. Dr. Ahmet Turan ÖZCERİT.  What Operating Systems Do  Computer-System Organization  Computer-System Architecture  Operating-System Structure.
CSE Operating System Principles
2.1 Silberschatz, Galvin and Gagne ©2009 Operating System Concepts – 8 th Edition System Programs (p73) System programs provide a convenient environment.
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.
Operating System (Reference : OS[Silberschatz] + Norton 6e book slides)
Chapter 1: Introduction Narzu Tarannum(NAT) Reff: BIS.
Silberschatz, Galvin and Gagne  Operating System Concepts Chapter 3: Operating-System Structures System Components Operating System Services.
Silberschatz, Galvin and Gagne ©2009 Operating System Concepts – 8 th Edition, Chapter 1: Introduction.
Chapter 1: Introduction. 1.2 Silberschatz, Galvin and Gagne ©2005 Operating System Concepts Objectives To provide a grand tour of the major operating.
Module 3: Operating-System Structures
Chapter 1: Introduction
Operating System Structure
Chapter 1: Introduction
Chapter 2: System Structures
Chapter 2: Operating-System Structures
Outline Chapter 2 (cont) OS Design OS structure
Chapter 1: Introduction
System calls….. C-program->POSIX call
Chapter 2: Operating-System Structures
Operating Systems Structure
Presentation transcript:

Operating Systems Terms and Definitions

Chapter Objectives After completing these slides you will: You will have a better understanding of the role of the operating system. You will have some familiarity with two of the most popular operating systems – Windows and Unix.

What is the Operating System A program that acts as an intermediary between a user of a computer and the computer hardware. Operating system goals: –Execute user programs and make solving user problems easier. –Make the computer system convenient to use. Use the computer hardware in an efficient manner.

Computer System Structure Computer system can be divided into four components –Hardware – provides basic computing resources CPU, memory, I/O devices –Operating system Controls and coordinates use of hardware among various applications and users –Application programs – define the ways in which the system resources are used to solve the computing problems of the users Word processors, compilers, web browsers, database systems, video games –Users People, machines, other computers

Components of the Computer System

Operating System Structure The operating system 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

Operating System Modules Most modern operating systems 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 flexibility

Layered Operating System

Functions of the Operating System Process Management Memory Management Storage Management I/O Subsystem Protection and Security Resource Allocation Accounting

Examples of Operating Systems MS-DOS Windows XP Unix Mac OS X

MS-DOS MS-DOS – written to provide the most functionality in the least space –Not divided into modules –Although MS-DOS has some structure, its interfaces and levels of functionality are not well separated

Structure of MS-DOS

Unix UNIX – The UNIX OS consists of two separable parts –Systems programs –The kernel Consists of everything below the system-call interface and above the physical hardware Provides the file system, CPU scheduling, memory management, and other operating-system functions; a large number of functions for one level

Structure of Unix

Mac OS X

Process Management An operating system executes a variety of programs: –Batch system – jobs –Time-shared systems – user programs or tasks Process – a program in execution; process execution must progress in sequential fashion A process includes: –program counter –stack –data section

Process Control Block (PCB) Information associated with each process Process state Program counter CPU registers CPU scheduling information Memory-management information Accounting information I/O status information

Process Control Block (PCB)

Context Switch When CPU switches to another process, the system must save the state of the old process and load the saved state for the new process Context-switch time is overhead; the system does no useful work while switching Time dependent on hardware support

CPU Switch from Process to Process

CPU Scheduling Selects from among the processes in memory that are ready to execute, and allocates the CPU to one of them according to the following scheduling criteria: –CPU utilization – keep the CPU as busy as possible –Throughput – # of processes that complete their execution per time unit –Turnaround time – amount of time to execute a particular process –Waiting time – amount of time a process has been waiting to be run –Response time – amount of time it takes from when a request was submitted until the first response is produced

Scheduling Algorithms Shortest-Job-First (SJF) – schedule the process that will take the shortest amount of time Priority Scheduling – assign a priority with each process and schedule the one with the highest priority Round Robin Scheduling – give each process in turn a fixed amount of CPU time

Storage Structure Main memory – only large storage media that the CPU can access directly. Secondary storage – extension of main memory that provides large nonvolatile storage capacity. Magnetic disks – rigid metal or glass platters covered with magnetic recording material Storage systems organized in hierarchy. –Speed –Cost –Volatility

Storage-Device Hierarchy

Memory Management Transfer data to memory during processing Transfer all instructions to memory in order to execute Memory management activities –Keeping track of which parts of memory are currently being used and by whom –Deciding which processes (or parts thereof) and data to move into and out of memory –Allocating and de-allocating memory space as needed

Storage Management OS provides uniform, logical view of information storage –Abstracts physical properties to logical storage unit - file –Each medium is controlled by device (i.e., disk drive, tape drive) Varying properties include access speed, capacity, data-transfer rate, access method (sequential or random) File-System management –Files usually organized into directories –Access control on most systems to determine who can access what –OS activities include Creating and deleting files and directories Primitives to manipulate files and dirs Mapping files onto secondary storage Backup files onto stable (non-volatile) storage media

File Protection File owner/creator should be able to control: –what can be done –by whom Types of access – read, write, execute Three classes of users RWX a) owner access 7  b) group access 6  c) public access1  0 0 1

Windows XP Access Control

Mass-Storage Management Usually disks used to store data that does not fit in main memory or data that must be kept for a “long” period of time. Proper management is of central importance Entire speed of computer operation hinges on disk subsystem and its algorithms OS activities –Free-space management –Storage allocation –Disk scheduling Some storage need not be fast –Tertiary storage includes optical storage, magnetic tape –Still must be managed –Varies between WORM (write-once, read-many-times) and RW (read-write)

I/O Subsystem Management One purpose of OS is to hide peculiarities of hardware devices from the user I/O subsystem responsible for –Memory management of I/O including buffering (storing data temporarily while it is being transferred), caching (storing parts of data in faster storage for performance), spooling (the overlapping of output of one job with input of other jobs) –General device-driver interface –Drivers for specific hardware devices

MS-DOS and Windows Earlier versions of Windows (95 and 98) were built on top of MS-DOS. DOS commands are still available to the user. The command window can be accessed by typing `cmd` in the Run bar. To get a list of DOS commands type `help`.

Windows Registry Registry – A central Windows database file that holds hardware and software configuration information. User Profile - All settings associated with a specific user, including desktop settings, network configurations, and application that the user has access to. It is part of the registry. There are five registry sub-trees found in Windows by default: HKEY_LOCAL_MACHINE HKEY_USERS HKEY_CURRENT_USER HKEY_CURRENT_CONFIG HKEY_CLASSES_ROOT

Editing the Windows Registry Before making any changes to the registry, it is always a good idea to make a backup copy of the registry before changes. REGEDIT - A Windows utility used to modify and back up the registry. The five major sub-trees are displayed one window. REGEDT32 – The sub-trees are displayed in individual windows

Basic Unix Commands man command – info on how to use a certain command ls – list files in a directory cd directory – change to a specified directory pwd – print working directory mkdir name – create a directory with name cp old new – copy the old file into a new one rm name – remove file name mv old new – rename old with new passwd – change password chmod 644 name – change file permissions on name