Operating Systems Lecture 4. Agenda for Today Review of previous lecture Operating system structures Operating system design and implementation UNIX/Linux.

Slides:



Advertisements
Similar presentations
Operating Systems Manage system resources –CPU scheduling –Process management –Memory management –Input/Output device management –Storage device management.
Advertisements

Operating-System Structures
3.1 Silberschatz, Galvin and Gagne ©2003 Operating System Concepts with Java Chapter 3: Operating-System Structures System Components Operating System.
Operating Systems Course: Operating Systems Instructor: Umar Kalim
Exploring the UNIX File System and File Security
UNIX Chapter 01 Overview of Operating Systems Mr. Mohammad A. Smirat.
1/21/2008CSCI 315 Operating Systems Design1 Operating System Structures Notice: The slides for this lecture have been largely based on those accompanying.
Chapter 2: Operating-System Structures
Silberschatz, Galvin and Gagne  Operating System Concepts Chapter 3: Operating-System Structures System Components Operating System Services.
Phones OFF Please Operating System Introduction Parminder Singh Kang Home:
Operating System Structure. Announcements Make sure you are registered for CS 415 First CS 415 project is up –Initial design documents due next Friday,
1/28/2004CSCI 315 Operating Systems Design1 Operating System Structures & Processes Notice: The slides for this lecture have been largely based on those.
Common System Components
Os31 Chapter 3 Operating-System Structures. os32 Outlines System Components Operating System Services System Calls System Programs System Structure Virtual.
Silberschatz, Galvin and Gagne  Operating System Concepts Common OS Components Process Management Memory Management File Management I/O System.
A. Frank - P. Weisberg Operating Systems Structure of Operating Systems.
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.
Abhinav Kamra Computer Science, Columbia University 3.1 Operating System Concepts Silberschatz, Galvin and Gagne  2002 Chapter 3: Operating-System Structures.
System Components Operating System Services System Calls System Programs System Structure Virtual Machines System Design and Implementation System Generation.
Chapter 10 – UNIX. History In late 1960s, two employees of Bell Labs (Ken Thompson & Dennis Ritchie) designed a new operating system to overcome the constraints.
Prof. Hsien-Hsin Sean Lee
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 Chapter 3: Operating-System Structures System Components OS Services System.
Module 1.1: Operating-System Structures
Operating Systems CS3502 Fall 2014 Dr. Jose M. Garrido
Chapter Two Exploring the UNIX File System and File Security.
Silberschatz, Galvin and Gagne  2002 Modified for CSCI 399, Royden, Operating System Concepts Operating Systems Lecture 6 System Calls OS System.
Silberschatz, Galvin and Gagne  2002 Modified for CSCI 399, Royden, Operating System Concepts Operating Systems Lecture 7 OS System Structure.
Silberschatz and Galvin  Operating System Concepts Module 3: Operating-System Structures System Components Operating System Services System Calls.
CE Operating Systems Lecture 3 Overview of OS functions and structure.
Operating System What is an Operating System? A program that acts as an intermediary between a user of a computer and the computer hardware. An operating.
3.1 Silberschatz, Galvin and Gagne ©2003 Operating System Concepts with Java Chapter 3: Operating-System Structures System Components Operating System.
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.
Operating Systems Lecture November 2015© Copyright Virtual University of Pakistan 2 Agenda for Today Review of previous lecture Hardware (I/O, memory,
Processes Introduction to Operating Systems: Module 3.
Silberschatz, Galvin and Gagne  Operating System Concepts Chapter 3: Operating-System Structures System Components Operating System Services.
Operating Systems Structure what is the organizational principle?
1 CSE Department MAITSandeep Tayal Operating-System Structures System Components Operating System Services System Calls System Programs System Structure.
Silberschatz, Galvin and Gagne  Operating System Concepts UNIT II Operating System Services.
1 CS.217 Operating System By Ajarn..Sutapart Sappajak,METC,MSIT Chapter 3 Operating-System Structures Slide 1 Chapter 3 Operating-System Structures.
A. Frank - P. Weisberg Operating Systems Structure of Operating Systems.
1.1 Silberschatz, Galvin and Gagne ©2009 Operating System Concepts – 8 th Edition Lecture 2: OS Structures (Chapter 2.7)
Chapter 1 Basic Concepts of Operating Systems Introduction Software A program is a sequence of instructions that enables the computer to carry.
CENG334 Introduction to Operating Systems 1 Erol Sahin Dept of Computer Eng. Middle East Technical University Ankara, TURKEY URL:
2.1 Silberschatz, Galvin and Gagne ©2009 Operating System Concepts – 8 th Edition System Programs (p73) System programs provide a convenient environment.
MINIX 3 – Introduction Béat Hirsbrunner Lecture 1, 18 September 2012 Main reference Andrew S. Tanenbaum, Albert S. Woodhull Operating Systems : Design.
Introduction to UNIX and Linux.  Written by Dennis Ritchie and Ken Thomsom at Bell Labs in 1969  Initially written in assembly language and a high-level.
1 Chapter 2: Operating-System Structures Services Interface provided to users & programmers –System calls (programmer access) –User level access to system.
Silberschatz, Galvin and Gagne  Operating System Concepts Chapter 3: Operating-System Structures System Components Operating System Services.
Module 3: Operating-System Structures System Components Operating System Services System Calls System Programs System Structure Virtual Machines System.
Computer System Structures
OPERATING SYSTEM CONCEPTS AND PRACTISE
Module 3: Operating-System Structures
Operating System Structures
Operating System Concepts
CS490 Windows Internals Quiz 2 09/27/2013.
Chapter 2: Operating-System Structures
Ch 2 - Overview Interacting with services provided by the OS
Chapter 2: System Structures
Operating Systems Lecture 4.
Chapter 3: Operating-System Structures
Basic Concepts Protection: Security:
Chapter 2: Operating-System Structures
Operating Systems Lecture 3.
Outline Chapter 2 (cont) OS Design OS structure
System calls….. C-program->POSIX call
Chapter 2: Operating-System Structures
Presentation transcript:

Operating Systems Lecture 4

Agenda for Today Review of previous lecture Operating system structures Operating system design and implementation UNIX/Linux directory structure Browsing UNIX/Linux directory structure Useful UNIX/Linux commands Recap of the lecture

UNIX System Structure

Layered Approach  The OS is broken up into a number of layers  Bottom layer is hardware and the topmost layer ( layer N) is the user interface  A typical layer consists of data structures and a set of routines to service the layer above it  THE operating system by Dijkstra  IBM’s OS/2

Layered Approach …

 Modularity  Each layer uses functions and services of only lower layers  Simplifies debugging and system verification.  The major difficulty with layered approach is careful definition of layers, because a layer can only use the layers below it  Less efficient than other approaches

Microkernel  Structures the operating system by removing all non-essential components from the kernel and implementing them as system and user level programs  Smaller kernel  Main function is to provide a communication facility between client programs and the various services that are also running in the user space.

Microkernel …  Easier to extend the OS—new services are added to user space and consequently do not require modification of the kernel and/or its recompilation  Easier to maintain operating system code (enhancement, debugging, etc.)  OS is easier to port from one hardware to another  More security and reliability  Mach, MacOS X Server, QNX, OS/2, and Windows NT

Windows NT Client- Server Structure

Virtual Machines  CPU scheduling and virtual memory techniques used to emulate hardware of the underlying machine, on which user can install an operating system that the virtual machine supports  On a time-sharing system with virtual machine support, users may be working on different operating systems  Pioneered by IBM VM operating system that ran CMS, a single-user interactive operating system

Virtual Machines …  Difficult to implement.  System development done without disrupting normal system operation.

Virtual Machines … Non Virtual Machine Virtual Machine

VMWare on Windows

Java Virtual Machine

System Design and Implementation  Design Goals  User: operating system should be convenient to use, easy to learn, reliable, safe, and fast.  System designer and administrator: operating system should be easy to design, implement, and maintain, as well as flexible, reliable, error-free, and efficient.

System Design and Implementation …  Mechanism: determine how to do something  Policy: determine what will be done  Separation of mechanism and policy is important for flexibility.

System Design and Implementation … Implementation in:  Assembly language  Higher level languages:  Easier to code  Compact code  Easier to port

Introduction to UNIX and Linux  Written by Dennis Ritchie and Ken Thomsom in at Bell Labs in 1969  Initially written in assembly language and a high- level language called B. Later converted from B to C language.  Linux written by Linus Torvalds (an undergraduate student at the Univ. of Helsinki, Finland) in  Most popular operating systems  Internet runs on UNIX and Linux

UNIX/Linux File System  UNIX has a hierarchical file system structure consisting of a root directory with other directories and files hanging under it  In a command-line user interface, typed commands are used to navigate the system  Directories and files are specified by filenames  cs604/assignments/assign1.c  /home/students/haroon/courses/cs604

Browsing Directory Structure /The root directory is the directory that contains all other directories. When a directory structure is displayed as a tree, the root directory is at the top. /binThis directory holds binary executable files that are essential for correct operation of the system /bootThis directory includes essential system boot files including the kernel image.

Browsing Directory Structure … /devThis directory contains the devices available to on the machine /etcLinux uses this directory to store system configuration files /homeThis is where every user on a Linux system has a personal directory /libShared libraries and kernel modules are stored in this directory

Browsing Directory Structure … /rootThe home directory for the superuser /sbinUtilities used for system administration (halt, ifconfig, fdisk, etc.) are stored in this directory /tmpUsed for storing temporary files. Similar to C:\Windows\Temp.

Browsing Directory Structure … /usrTypically a shareable, read-only directory. Contains user applications and supporting files for those applications. /varThis directory contains variable data files such as logs (/var/log), mail (/var/mail), and spools (/var/spool) among other things.

UNIX/Linux Directory Hierarchy

Recap Review of previous lecture Operating system structures Operating system design and implementation UNIX/Linux directory structure Recap of the lecture

Operating Systems Lecture 4