Phones OFF Please Operating System Introduction Parminder Singh Kang Home:

Slides:



Advertisements
Similar presentations
Operating System Structures
Advertisements

Chap 2 System Structures.
Operating-System Structures
Introduction CSCI 444/544 Operating Systems Fall 2008.
CMPT 300: Operating Systems I Dr. Mohamed Hefeeda
1 School of Computing Science Simon Fraser University CMPT 300: Operating Systems I Dr. Mohamed Hefeeda.
COMP5102/5122 Lecture 1 Operating Systems (OS) Introduction phones off (please)
Home: Phones OFF Please Unix Kernel Parminder Singh Kang Home:
Cs238 Lecture 3 Operating System Structures Dr. Alan R. Davis.
Common System Components
Computer Organization and Architecture
Silberschatz, Galvin and Gagne  Operating System Concepts Common OS Components Process Management Memory Management File Management I/O System.
CS364 CH08 Operating System Support TECH Computer Science Operating System Overview Scheduling Memory Management Pentium II and PowerPC Memory Management.
Systems Software Operating Systems.
An Introduction to Operating Systems. Definition  An Operating System, or OS, is low-level software that enables a user and higher-level application.
 Introduction Introduction  Definition of Operating System Definition of Operating System  Abstract View of OperatingSystem Abstract View of OperatingSystem.
Objectives To provide a grand tour of the major operating systems components To provide coverage of basic computer system organization.
COMPUTER SOFTWARE Section 2 “System Software: Computer System Management ” CHAPTER 4 Lecture-6/ T. Nouf Almujally 1.
Silberschatz, Galvin and Gagne ©2009 Operating System Concepts – 8 th Edition, Chapter 2: System Structures.
CHAPTER 2 OPERATING SYSTEM OVERVIEW 1. Operating System Operating System Definition A program that controls the execution of application programs and.
Operating System. Architecture of Computer System Hardware Operating System (OS) Programming Language (e.g. PASCAL) Application Programs (e.g. WORD, EXCEL)
Introduction and Overview Questions answered in this lecture: What is an operating system? How have operating systems evolved? Why study operating systems?
Operating Systems CS3502 Fall 2014 Dr. Jose M. Garrido
Software Software essential is coded programs that perform a serious of algorithms. Instructions loaded into primary memory (RAM) from secondary storage.
Contact Information Office: 225 Neville Hall Office Hours: Monday and Wednesday 12:00-1:00 and by appointment.
Chapter 5 Operating System Support. Outline Operating system - Objective and function - types of OS Scheduling - Long term scheduling - Medium term scheduling.
◦ What is an Operating System? What is an Operating System? ◦ Operating System Objectives Operating System Objectives ◦ Services Provided by the Operating.
INTRODUCTION SOFTWARE HARDWARE DIFFERENCE BETWEEN THE S/W AND H/W.
CS 390 Unix Programming Summer Unix Programming - CS 3902 Course Details Online Information Please check.
Silberschatz, Galvin and Gagne  Operating System Concepts Chapter 3: Operating-System Structures System Components Operating System Services.
CE Operating Systems Lecture 3 Overview of OS functions and structure.
© Paradigm Publishing Inc. 4-1 OPERATING SYSTEMS.
Silberschatz, Galvin and Gagne  Operating System Concepts Chapter 3: Operating-System Structures System Components Operating System Services.
OSes: 3. OS Structs 1 Operating Systems v Objectives –summarise OSes from several perspectives Certificate Program in Software Development CSE-TC and CSIM,
Operating System Principles And Multitasking
UNIX and Shell Programming
Operating System Structure A key concept of operating systems is multiprogramming. –Goal of multiprogramming is to efficiently utilize all of the computing.
1 Software. 2 What is software ► Software is the term that we use for all the programs and data on a computer system. ► Two types of software ► Program.
© Paradigm Publishing, Inc. 4-1 Chapter 4 System Software Chapter 4 System Software.
CIS250 OPERATING SYSTEMS Chapter One Introduction.
Chapter 1 Basic Concepts of Operating Systems Introduction Software A program is a sequence of instructions that enables the computer to carry.
CS4315A. Berrached:CMS:UHD1 Introduction to Operating Systems Chapter 1.
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)
Operating System Structure Lecture: - Operating System Concepts Lecturer: - Pooja Sharma Computer Science Department, Punjabi University, Patiala.
Introduction to Operating Systems Concepts
Module 3: Operating-System Structures
2. OPERATING SYSTEM 2.1 Operating System Function
Operating System.
Chapter 2: System Structures
William Stallings Computer Organization and Architecture
Operating System Structure
Introduction to Operating System (OS)
Chapter 1: Introduction
Chapter 1: Introduction
Computer Science I CSC 135.
Shell & Kernel Concepts in Operating System
Chapter 2: System Structures
Chapter 3: Operating-System Structures
Unit 1: Introduction to Operating System
Chapter 2: Operating-System Structures
Introduction to Operating Systems
Outline Chapter 2 (cont) OS Design OS structure
Software - Operating Systems
Introduction to Operating Systems
Chapter-1 Computer is an advanced electronic device that takes raw data as an input from the user and processes it under the control of a set of instructions.
Chapter 2: Operating-System Structures
Contact Information Office: 225 Neville Hall Office Hours: Monday and Wednesday 12:00-1:00 and by appointment. Phone:
An Introduction to Operating Systems
Introduction and History
Presentation transcript:

Phones OFF Please Operating System Introduction Parminder Singh Kang Home:

1. Computer system consists of : Hardware (monitor, keyboard, case, motherboard, disk drives, etc ) System Software (operating systems, compilers, etc) Application Software (database, client, web browser) Translators (enable programs in languages humans can understand to be executed by the computer) Debuggers (assist in debugging programs ) IDE (a combined editor, compiler and run time environment ) and Profilers.

2 What is an Operating System? It is an interface between;  User and hardware, Application software and hardware.  Hides hardware complexity. It manages resources ;  Processors (CPU ’ s) - applications are allocated execution time on a CPU(s)  Memory - allocates real or virtual memory to an application as required  Peripherals - allocation of disk space, print spooling, etc. Coordinator of operations  Optimising utilisation, i.e. sharing CPU time and disk I/O between applications.  Synchronising activities, i.e. between applications and I/O

 Controlling access, i.e. ensuring applications and users only access resources they have rights too  Accounting for usage, i.e. to bill users for CPU usage and disk space used. Operating System Computer Hardware Compiler Assembler …..….………….. other applications System and Application Programs User-1 User-2 User-n ……...

3 Desirable features of an O/S features can be defined by using two main areas; by User view and System View. user view; OS is designed mostly to ease of use with some attention paid to performance but none paid to resource utilisation. System View; OS acts as a control program. A control program that manages execution of user programs and prevents errors and improper use of computer. Also, Features of operating system also vary according to system and application.

Main features of OS are: Efficiency  speed of execution – run applications as fast as possible  throughput – maximizes number of applications put unit time  resource utilisation e.g. share CPU and I/O between CPU hungry applications and I/O bound applications Compactness  memory – O/S uses as little memory as possible.  external storage – O/S does not fill the disks. Quality  reliability – little or no down time.  Maintainability – easy to fix problems.

4 Structure of an Operating System Most O/S are layered - reduces complexity, easier to change machine dependent bits User Level(User mode – unprivileged) =========================================== Kernel Level (Protected/privileged mode) Hardware Independent Hardware Dependent

For Example: Unix Unix Divides Operating System into three main Components:  The Kernel  The Shell  Directory Tree Kernel is Core Component of UNIX OS. It is the master program that manages all physical resources, including;  File System  Device Management  Process Management  Memory Management Shell is an interface between user and kernel. The primary role of shell is to accept the commands, interprets these commands and then executes them.

Kernel Shell Hardware; CPU, I/O, Memory and Storage Devices

5 Operating systems and Unix In the past (until the early 1990 ’ s)  each manufacturer had own O/S, e.g. IBM, DEC, PRIME, CDC, etc.  some manufacturers had several O/S, e.g. IBM  generally written in assembly language, i.e. machine dependent!!  most were very poor & difficult to use! In late 1960 ’ s programmers at Bell labs produced UNIX O/S  target: an interactive timesharing system for professional programmers  specified the low-level language C as a replacement for assembly language  O/S was written mainly in C  minimum (e.g. hardware dependent bits) in assembly language  Given away free to Universities, etc. – this lead to widespread use!  Ported to many different hardware configurations

Why Unix? Tree structured hierarchal file system Consistent structure, i.e. all I/O devices looked the same Users files are just a sequence of bytes – O/S imposed no structure on them Proper multi-tasking virtual memory O/S Networking built in at early stage, e.g. ftp, , etc. Simple system interface Powerful Command Line Interpreter (shell) – unprivileged not part of O/S Unix is well documented Free versions (with source) Linux Lots of free software for Unix Most O/S copy Unix ’ s ideas

6 Unix structure | App1 | App2 | | Application programs | | | Compiler | Editor | Shell |.... | System Programs | | | Standard Libraries : Open,.... | User-O/S interface |=================================| privileged Kernel | File System | Memory Mgt |.....| Machine Independent O/S | | | | | Process Cntrl | H/W Cntrl |.....| Machine Dependent O/S | |=================================| | Hardware |

7 O/S Process Management Most O/S are multi-tasking/multi-processing  Can run many processes (applications, system tasks) concurrently  CPU execution time shared among the processes Gives users virtual processors  Applications think they have their own CPU and memory Processes given a priority; Depending upon resuouce usage? O/S schedules processes  OS schedules processes to run on available CPUs using some scheduling algorithm, e.g. priority, round-robin, etc  O/S maintains status of every process  Running, suspended, waiting for I/O, etc

8 O/S File System Management Hides details of the physical organisation  the physical disk structure (tracks, cylinders, sectors)  users unaware of where files are stored,  e.g. local disks or remote network server Provides users with a logical interface  e.g. named files stored in a tree structure of directories (folders) Gives file system a uniform structure  e.g. no matter how many cylinders or what sector size the file system looks the same on all disks Elements referred to by name, rather than physical position on disk All I/O made to look the same data stored on disks, cameras, remote servers, etc.

9 O/S Memory Management O/S decides where programs stored in memory  applications can not access physical memory directly With Virtual Memory programs have illusion of (almost) infinite memory  program address space is broken in pages stored on disk  O/S moves pages to/from disk and memory as required  a memory management unit (under control of O/S) maps memory references by a program to physical memory  programs cannot access physical memory outside their own address space,  e.g. operating system memory or memory allocated to other processes

10 O/S User Interface Provides the mechanism for human interaction  i.e. sits in between the user and hardware resources The Unix shell (command line processor) is unprivileged.  i.e. not part of the UNIX O/S  several shells are available, e.g. bash, csh  the shell is an interpreted programming language GUI ’ s (windows based Graphical User Interfaces) are easier for novice  but less powerful than the shell  programs access O/S using system calls