1 Case Study 1: UNIX and LINUX Chapter 10 10.1 History of unix 10.2 Overview of unix 10.3 Processes in unix 10.4 Memory management in unix 10.5 Input/output.

Slides:



Advertisements
Similar presentations
14 Macintosh OS X Internals. © 2005 Pearson Addison-Wesley. All rights reserved The Macintosh Platform 1984 – first affordable GUI Based on Motorola 32-bit.
Advertisements

EEE 435 Principles of Operating Systems Operating System Concepts (Modern Operating Systems 1.5)
CMPT 300: Final Review Chapters 8 – Memory Management: Ch. 8, 9 Address spaces Logical (virtual): generated by the CPU Physical: seen by the memory.
1 UNIX 1 History of UNIX 2 Overview of UNIX 3 Processes in UNIX 4 Memory management in UNIX 5 The UNIX file system 6 Input/output in UNIX.
1 Pertemuan 24 Sistem Operasi Unix Matakuliah: T0316/sistem Operasi Tahun: 2005 Versi/Revisi: 5.
Structure of Processes
Ceng Operating Systems 10-1 Chapter 10 : Case Study - UNIX History of unix Overview of unix Processes in unix Memory management in unix Input/output.
1 Case Study 2: Windows 2000 Chapter History of windows Programming windows System structure 11.4 Processes and threads in.
Files. System Calls for File System Accessing files –Open, read, write, lseek, close Creating files –Create, mknod.
Introduction to Kernel
2: OS Structures 1 Jerry Breecher OPERATING SYSTEMS STRUCTURES.
CMPT 300: Final Review Chapters 8 – Memory Management: Ch. 8, 9 Address spaces Logical (virtual): generated by the CPU Physical: seen by the memory.
Process Management. External View of the OS Hardware fork() CreateProcess() CreateThread() close() CloseHandle() sleep() semctl() signal() SetWaitableTimer()
6/24/2015B.RamamurthyPage 1 File System B. Ramamurthy.
Process Processes are executing or executable instances of programs. Processes in a modern OS haveOS –management information –resources –unique process.
File System Implementation
Linux Operating System
7/15/2015B.RamamurthyPage 1 File System B. Ramamurthy.
1 Overview Assignment 12: hints  Distributed file systems Assignment 11: solution  File systems.
Operating Systems Sameer Mahajan. Overview Process management Interrupts Memory management File system Device drivers Networking (TCP/IP, UDP) Security.
Ceng Operating Systems 11-1 Chapter 11 : Case Study - Win 2000 History of windows 2000 Programming windows 2000 System structure Processes and threads.
MODERN OPERATING SYSTEMS Third Edition ANDREW S. TANENBAUM Chapter 11 Case Study 2: Windows Vista Tanenbaum, Modern Operating Systems 3 e, (c) 2008 Prentice-Hall,
CSC 322 Operating Systems Concepts Lecture - 4: by Ahmed Mumtaz Mustehsan Special Thanks To: Tanenbaum, Modern Operating Systems 3 e, (c) 2008 Prentice-Hall,
Segmentation & O/S Input/Output Chapter 4 & 5 Tuesday, April 3, 2007.
CASE STUDY 1: Linux and Android Tanenbaum & Bo, Modern Operating Systems:4th ed., (c) 2013 Prentice-Hall, Inc. All rights reserved.
Introduction to Operating Systems Chapter 1. cs431 -cotter2 Lecture Objectives Understand the relationship between computing hardware, operating system,
Chapter 1 Introduction 1.1 What is an operating system
4P13 Week 1 Talking Points. Kernel Organization Basic kernel facilities: timer and system-clock handling, descriptor management, and process Management.
Chapter 7 UNIX and LINUX. 2 Outline Overview Processes in UNIX Memory management in UNIX I/O in UNIX UNIX file system.
The Structure of Processes (Chap 6 in the book “The Design of the UNIX Operating System”)
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.
30 October Agenda for Today Introduction and purpose of the course Introduction and purpose of the course Organization of a computer system Organization.
Scis.regis.edu ● CS 468: Advanced UNIX Class 4 Dr. Jesús Borrego Regis University 1.
File System Implementation
1 Chapter 10 : Case Study - UNIX History Overview Processes Memory management Input/output in The unix file system Security Note: This case study covers.
MODERN OPERATING SYSTEMS Third Edition ANDREW S. TANENBAUM Chapter 10 Case Study 1: LINUX Tanenbaum, Modern Operating Systems 3 e, (c) 2008 Prentice-Hall,
1 Chapter 4 Processes R. C. Chang. 2 Linux Processes n Each process is represented by a task_struct data structure (task and process are terms that Linux.
UNIX Unit 1- Architecture of Unix - By Pratima.
The UNIX File System (1) Some important directories found in most UNIX systems.
File Systems. 2 What is a file? A repository for data Is long lasting (until explicitly deleted).
UNIX & Windows NT Name: Jing Bai ID: Date:8/28/00.
CSC414 “Introduction to UNIX/ Linux” Lecture 2. Schedule 1. Introduction to Unix/ Linux 2. Kernel Structure and Device Drivers. 3. System and Storage.
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.
1 Structure of Processes Chapter 6 Process State and Transition Data Structure for Process Layout of System Memory THE DESIGN OF THE UNIX OPERATING SYSTEM.
Chapter 1 Introduction  What is an operating system  History of operating systems  The operating system zoo  Computer hardware review  Operating system.
Shahriar Pirnia Operating system سيستم عامل.
What is a Process ? A program in execution.
MINIX Presented by: Clinton Morse, Joseph Paetz, Theresa Sullivan, and Angela Volk.
CEG 2400 FALL 2012 Linux/UNIX Network Operating Systems.
Operating System Basics
MODERN OPERATING SYSTEMS Third Edition ANDREW S
Introduction to Kernel
CSC 482/582: Computer Security
Case Study 1: UNIX and LINUX
Structure of Processes
Avani R.Vasant V.V.P. Engineering College
CASE STUDY 1: Linux and Android
KERNEL ARCHITECTURE.
Structure of Processes
OPERATING SYSTEMS DESIGN AND IMPLEMENTATION Third Edition ANDREW S
An overview of the kernel structure
Chapter 2: The Linux System Part 2
Case Study 2: Windows History of windows 2000
File System B. Ramamurthy B.Ramamurthy 11/27/2018.
CHAPTER 8 ( , ) John Carelli, Instructor Kutztown University
Operating Systems Lecture 1.
Process Description and Control in Unix
Process Description and Control in Unix
Chapter 1: Introduction CSS503 Systems Programming
Structure of Processes
Presentation transcript:

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 in unix 10.6 The unix file system 10.7 Security in unix

2 UNIX The layers of a UNIX system. User Interface

3 UNIX Utility Programs A few of the more common UNIX utility programs required by POSIX

4 UNIX Kernel Approximate structure of generic UNIX kernel

5 Processes in UNIX Process creation in UNIX.

6 POSIX The signals required by POSIX.

7 System Calls for Process Management s is an error code pid is a process ID residual is the remaining time from the previous alarm

8 POSIX Shell A highly simplified shell

9 Threads in POSIX The principal POSIX thread calls.

10 The ls Command Steps in executing the command ls type to the shell

11 Flags for Linux clone Bits in the sharing_flags bitmap

12 UNIX Scheduler The UNIX scheduler is based on a multilevel queue structure

13 Booting UNIX The sequences of processes used to boot some systems cp

14 Handling Memory Process A's virtual address space Physical memory Process B's virtual address space Process A Process B

15 Sharing Files Two processes can share a mapped file. A new file mapped simultaneously into two processes

16 System Calls for Memory Management s is an error code b and addr are memory addresses len is a length prot controls protection flags are miscellaneous bits fd is a file descriptor offset is a file offset

17 Paging in UNIX The core map in 4BSD. The core map has an entry for each page

18 Paging in Linux (1) Linux uses three-level page tables

19 Paging in Linux (2) Operation of the buddy algorithm. Buddy algorithm

20 Networking Use of sockets for networking

21 Terminal Management The main POSIX calls for managing the terminal

22 UNIX I/O (1) Some of the fields of a typical cdevsw table

23 UNIX I/O (2) The UNIX I/O system in BSD

24 Streams An example of streams in System V

25 The UNIX File System (1) Some important directories found in most UNIX systems

26 The UNIX File System (2) Before linking. After linking. (a) Before linking. (b) After linking

27 The UNIX File System (3) Separate file systems After mounting (a) (b) (a) Before mounting. (b) After mounting

28 Locking Files (a) File with one lock (b) Addition of a second lock (c) A third lock

29 System Calls for File Management s is an error code fd is a file descriptor position is a file offset

30 The lstat System Call Fields returned by the lstat system call.

31 System Calls for Directory Management s is an error code dir identifies a directory stream dirent is a directory entry

32 UNIX File System (1) Disk layout in classical UNIX systems

33 UNIX File System (2) Directory entry fields. Structure of the i-node

34 UNIX File System (3) The relation between the file descriptor table, the open file description

35 UNIX File System (4) A BSD directory with three files The same directory after the file voluminous has been removed

36 The Linux File System Layout of the Linux Ex2 file system.

37 Network File System (1) Examples of remote mounted file systems Directories are shown as squares, files as circles

38 Network File System (2) The NFS layer structure. The NFS layer structure

39 Security in UNIX Some examples of file protection modes

40 System Calls for File Protection s is an error code uid and gid are the UID and GID, respectively