UNIX Unit 1- Architecture of Unix - By Pratima.

Slides:



Advertisements
Similar presentations
Operating Systems Components of OS
Advertisements

Threads, SMP, and Microkernels
Operating System Structures
Operating Systems Manage system resources –CPU scheduling –Process management –Memory management –Input/Output device management –Storage device management.
Introduction to Kernel
ICS Principles of Operating Systems
Home: Phones OFF Please Unix Kernel Parminder Singh Kang Home:
Figure 1.1 Interaction between applications and the operating system.
Cs238 Lecture 3 Operating System Structures Dr. Alan R. Davis.
Common System Components
OPERATING SYSTEMS Introduction
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.
CS4315A. Berrached:CMS:UHD1 Operating System Structures Chapter 3.
What do operating systems do? manage processes manage memory and computer resources provide security features execute user programs make solving user.
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.
Chapter 3 Operating Systems Introduction to CS 1 st Semester, 2015 Sanghyun Park.
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 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)
Composition and Evolution of Operating Systems Introduction to Operating Systems: Module 2.
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.
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,
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.
CE Operating Systems Lecture 3 Overview of OS functions and structure.
Slide 3-1 Copyright © 2004 Pearson Education, Inc. Operating Systems: A Modern Perspective, Chapter 3.
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.
Silberschatz, Galvin and Gagne  Operating System Concepts Chapter 3: Operating-System Structures System Components Operating System Services.
LINUX System : Lecture 7 Bong-Soo Sohn Lecture notes acknowledgement : The design of UNIX Operating System.
OSes: 3. OS Structs 1 Operating Systems v Objectives –summarise OSes from several perspectives Certificate Program in Software Development CSE-TC and CSIM,
Distributed System Concepts and Architectures 2.3 Services Fall 2011 Student: Fan Bai
Operating Systems Lecture November 2015© Copyright Virtual University of Pakistan 2 Agenda for Today Review of previous lecture Hardware (I/O, memory,
Chapter 3 Operating Systems © 2007 Pearson Addison-Wesley. All rights reserved.
OS, , Part I Operating - System Structures Department of Computer Engineering, PSUWannarat Suntiamorntut.
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.
BIT213,CISY Operating Systems 1
Copyright © Curt Hill Operating Systems An Introductory Overview.
Silberschatz, Galvin, and Gagne  Applied Operating System Concepts Module 3: Operating-System Structures System Components Operating System Services.
WHY AN OPERATING SYSTEM (OS) OS interacts with hardware and manages programs. Programs not expected to know which hardware they will run on. Must be possible.
1 Chapter 2: Operating-System Structures Services Interface provided to users & programmers –System calls (programmer access) –User level access to system.
System Components Operating System Services System Calls.
Operating System Structure Lecture: - Operating System Concepts Lecturer: - Pooja Sharma Computer Science Department, Punjabi University, Patiala.
Overview of today’s lecture Major components of an operating system Structure and internal architecture of an operating system Monolithic Vs Micro-kernels.
1.3 Operating system services An operating system provide services to programs and to the users of the program. It provides an environment for the execution.
OPERATING SYSTEMS STRUCTURES Jerry Breecher 2: Operating System Structures 1.
1.1 Silberschatz, Galvin and Gagne ©2013 Operating System Concepts – 9 th Edition Chapter 1: Introduction What Operating Systems Do √ Computer-System Organization.
Introduction to Operating Systems Concepts
Module 3: Operating-System Structures
Introduction to Kernel
Chapter 4 – Introduction to Operating System Concepts
Operating System Structure
KERNEL ARCHITECTURE.
OPERATING SYSTEM OVERVIEW
Shell & Kernel Concepts in Operating System
Chapter 2: System Structures
Chapter 3: Operating-System Structures
Chapter 2: Operating-System Structures
Operating Systems Lecture 3.
Introduction to Operating Systems
LINUX System : Lecture 7 Lecture notes acknowledgement : The design of UNIX Operating System.
The Main Features of Operating Systems
Outline Operating System Organization Operating System Examples
Software - Operating Systems
Chapter 2: Operating-System Structures
Presentation transcript:

UNIX Unit 1- Architecture of Unix - By Pratima

Unix Architecture Typical computer system consists of: Hardware Operating system Applications and utilities Typical OS includes a user interface or command interpreter 2

Unix Architecture 3

UNIX is no longer a small system but it certainly is a powerful one. Unix Architecture UNIX is no longer a small system but it certainly is a powerful one. Layered approach is basis for Unix security Division of Labor: Kernel n Shell The File Process The System Calls 4

Levels of Unix Software Unix uses a layer approach of defining software Layered approach is basis for Unix security At the lowest level, the level closest to the hardware, are the basic hardware interface modules Process scheduling Memory management Interrupt handling Low level device control Disk system management and data buffering Process synchronization and inter-process communication (IPC) 6

Unix Functional Layer Model 7

1. Division of Labor: Kernel & Shell “Filter ideas” is division of labor between two agencies- The Kernel and Shell The Kernel interacts with the machine's hardware & the Shell with the user (Mapping between user requests and device driver actions) The Kernel is the core of the operating system 1. Its a collections of routines mostly written in c 2. Its loaded into memory when its booted n communicates with hardware directly 3. Programs access the Kernel through set of System calls It actually also performs the requested service Process creation and termination (Schedules the process) I/O services File/disk access services (manages sys memory) Terminal handling services Decides the Priorities n perform other tasks. 8

Shell The uppermost layer consists of user processes running: Shells Unix commands Utility programs User application programs User processes: Protected from from other users Have no access to Unix kernel routines except through the system call interface Cannot directly access kernel memory space 9

Shell Command Interpreter is a job that is handled by the outer part of the OS called as Shell OR Unix command interface is a separate program referred to as the shell The Shell actually acts as an interface between user & the Kernel There could be several Shells in action-one for each user who logged in. After using commands, shell communicates with Kernel to see that command is executed. It is represented by sh(Bourne shell), csh(C shell), ksh(Korn shell) or bash(Bash shell) 10

Kernel Space Kernel space is the region of memory where all kernel services are provided via kernel processes Any process executing in kernel space is said to be executing in kernel mode Kernel space is a privileged area; the user has access to it only through the system call interface A user does not have direct access to either all machine instructions or devices A kernel process does have direct access to both 11

2. The File and Process “File have places and Process have Life” A File is a an array of bytes n also a part of single hierarchical structure. Can be moved from one place to another It considers even directories and devices as a single file system The Process is an entity, name given to a file wen its executed as a program IT also belongs to a separate hierarchical tree structure 12

3. The System Calls System calls provide a programming interface that allows user programs to access kernel functions There are a large number of system calls that perform functions to manage system resources such as memory, disk storage, and peripherals System calls are defined in a run-time library that provides a mapping of the system call interface to the kernel routine(s) that perform the system functions The shell also provides functionality equivalent to many of the system calls System call arguments are passed in the u area (user area) of the calling process 13

System Usage Accounting Services Unix provides some general accounting services As each process terminates, an accounting record is made available describing the resources used by the process Name of the process Amount of user and system CPU time used Elapsed (wall clock) time Average amount of memory used Number of disk I/O operations done UID and GID of the process Terminal from which the process was started 14

Features A Multiuser System A Multitasking System The Building-Block Approach The Unix Toolkit Pattern Matching Programming Facility Documentation 15