LINUX System : Lecture 7 Bong-Soo Sohn Lecture notes acknowledgement : The design of UNIX Operating System.

Slides:



Advertisements
Similar presentations
Principles of I/O Hardware I/O Devices Block devices, Character devices, Others Speed Device Controllers Separation of electronic from mechanical components.
Advertisements

Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 3: Operating Systems Computer Science: An Overview Tenth Edition.
Operating System.
Slide 3-1 Copyright © 2004 Pearson Education, Inc. Operating Systems: A Modern Perspective, Chapter 3 3 Operating System Organization.
16 UNIX and Linux. Fig. 16.1: The shell and the kernel.
CMPT 300: Final Review Chapters 8 – Memory Management: Ch. 8, 9 Address spaces Logical (virtual): generated by the CPU Physical: seen by the memory.
Figure 2.8 Compiler phases Compiling. Figure 2.9 Object module Linking.
Architectural Support for Operating Systems. Announcements Most office hours are finalized Assignments up every Wednesday, due next week CS 415 section.
INTRODUCTION OS/2 was initially designed to extend the capabilities of DOS by IBM and Microsoft Corporations. To create a single industry-standard operating.
Introduction to Kernel
I/O Hardware n Incredible variety of I/O devices n Common concepts: – Port – connection point to the computer – Bus (daisy chain or shared direct access)
Home: Phones OFF Please Unix Kernel Parminder Singh Kang Home:
Process Management. External View of the OS Hardware fork() CreateProcess() CreateThread() close() CloseHandle() sleep() semctl() signal() SetWaitableTimer()
Advanced OS Chapter 3p2 Sections 3.4 / 3.5. Interrupts These enable software to respond to signals from hardware. The set of instructions to be executed.
Figure 1.1 Interaction between applications and the operating system.
Cs238 Lecture 3 Operating System Structures Dr. Alan R. Davis.
1 An Architectural View of an OS Inter-process communication Process Scheduling Process Control Subsystem File Subsystem Device Drivers Hardware Control.
Chapter 6 Implementing Processes, Threads, and Resources.
Introduction Operating Systems’ Concepts and Structure Lecture 1 ~ Spring, 2008 ~ Spring, 2008TUCN. Operating Systems. Lecture 1.
1 I/O Management in Representative Operating Systems.
Slide 6-1 Copyright © 2004 Pearson Education, Inc. Operating Systems: A Modern Perspective, Chapter 6.
Copyright Arshi Khan1 System Programming Instructor Arshi Khan.
I/O Tanenbaum, ch. 5 p. 329 – 427 Silberschatz, ch. 13 p
Slide 6-1 Copyright © 2004 Pearson Education, Inc. Operating Systems: A Modern Perspective, Chapter 6.
Chapter 8 Windows Outline Programming Windows 2000 System structure Processes and threads in Windows 2000 Memory management The Windows 2000 file.
OPERATING SYSTEM OVERVIEW. Contents Basic hardware elements.
COMP 3438 – Part I - Lecture 4 Introduction to Device Drivers Dr. Zili Shao Department of Computing The Hong Kong Polytechnic Univ.
Kernel, processes and threads Windows and Linux. Windows Architecture Operating system design Modified microkernel Layered Components HAL Interacts with.
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.
Lecture 3 Process Concepts. What is a Process? A process is the dynamic execution context of an executing program. Several processes may run concurrently,
Background: Operating Systems Brad Karp UCL Computer Science CS GZ03 / M th November, 2008.
Computers Operating System Essentials. Operating Systems PROGRAM HARDWARE OPERATING SYSTEM.
Slide 3-1 Copyright © 2004 Pearson Education, Inc. Operating Systems: A Modern Perspective, Chapter 3.
30 October Agenda for Today Introduction and purpose of the course Introduction and purpose of the course Organization of a computer system Organization.
OSes: 3. OS Structs 1 Operating Systems v Objectives –summarise OSes from several perspectives Certificate Program in Software Development CSE-TC and CSIM,
OS, , Part I Operating - System Structures Department of Computer Engineering, PSUWannarat Suntiamorntut.
UNIX and Shell Programming
We will focus on operating system concepts What does it do? How is it implemented? Apply to Windows, Linux, Unix, Solaris, Mac OS X. Will discuss differences.
UNIX Unit 1- Architecture of Unix - By Pratima.
Overview of Operating Systems Introduction to Operating Systems: Module 0.
System Components ● There are three main protected modules of the System  The Hardware Abstraction Layer ● A virtual machine to configure all devices.
CSC414 “Introduction to UNIX/ Linux” Lecture 2. Schedule 1. Introduction to Unix/ Linux 2. Kernel Structure and Device Drivers. 3. System and Storage.
2 Processor(s)Main MemoryDevices Process, Thread & Resource Manager Memory Manager Device Manager File Manager.
What is an Operating System? Various systems and their pros and cons –E.g. multi-tasking vs. Batch OS definitions –Resource allocator –Control program.
Security Architecture and Design Chapter 4 Part 2 Pages 319 to 357.
Direct memory access. IO Command includes: buffer address buffer length read or write dada position in disk When IO complete, DMA sends an interrupt request.
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.
CSCI/CMPE 4334 Operating Systems Review: Exam 1 1.
Introduction to Operating Systems Concepts
Introduction to Kernel
Module 12: I/O Systems I/O hardware Application I/O Interface
Applied Operating System Concepts
Protection of System Resources
Operating Systems: A Modern Perspective, Chapter 6
KERNEL ARCHITECTURE.
2P13 Week 2.
CPSC 457 Operating Systems
Operating System Concepts
CS703 - Advanced Operating Systems
Mid Term review CSC345.
Linux Architecture Overview.
Operating Systems Lecture 1.
LINUX System : Lecture 7 Lecture notes acknowledgement : The design of UNIX Operating System.
Operating Systems: A Modern Perspective, Chapter 3
Implementing Processes, Threads, and Resources
System Calls System calls are the user API to the OS
Mr. M. D. Jamadar Assistant Professor
LINUX System : Lecture 6 Bong-Soo Sohn
Module 12: I/O Systems I/O hardwared Application I/O Interface
Presentation transcript:

LINUX System : Lecture 7 Bong-Soo Sohn Lecture notes acknowledgement : The design of UNIX Operating System

2 Architecture of the UNIX libraries system call interface file subsystem process control subsystem inter-process communication scheduler memory management hardware control hardware buffer cache device drivers characterblock user Level kernel Level hardware Level trap user programs

3 System calls & Libraries libraries system call interface file subsystem process control subsystem inter-process communication scheduler memory management hardware control hardware buffer cache device drivers characterblock user Level kernel Level hardware Level trap user programs system call interface

System calls & Libraries System call library –OS service in the form of C function call Standard library, User library –Linked with the programs at compile time and are part of the user program

5 File Subsystem (1) libraries system call interface file subsystem process control subsystem inter-process communication scheduler memory management hardware control hardware buffer cache device drivers characterblock user Level kernel Level hardware Level trap user programs

6 File Subsystem (2) Managing files and structures of file system Allocating file space Administering free space Controlling access to files Retrieving data for users Interact with set of system calls –open, close, read, write, state, chown, chmod …

7 Buffering Mechanism (1) libraries system call interface file subsystem process control subsystem inter-process communication scheduler memory management hardware control hardware buffer cache device drivers characterblock user Level kernel Level hardware Level trap user programs

8 Buffering Mechanism (2) Interact with block I/O device drivers to initiate data transfer to and from kernel.

9 Process Control Subsystem (1) libraries system call interface file subsystem process control subsystem inter-process communication scheduler memory management hardware control hardware buffer cache device drivers characterblock user Level kernel Level hardware Level trap user programs

10 Process Control Subsystem (2) Managing process structures (proc table, u table,…) Process scheduling Interprocess communication (IPC) Memory management Responsible for process synchronization. Communicate with file subsystem –Loading a file into memory for execution Interact with set of system calls –fork, exec, exit, wait, brk, signal …

11 Process Control Subsystem (3) Memory management module –Control the allocation of memory to a process Scheduler module –Allocate the CPU to processes Interprocess communication –There are several forms.

12 Hardware Control (1) libraries system call interface file subsystem process control subsystem inter-process communication scheduler memory management hardware control hardware buffer cache device drivers characterblock user Level kernel Level hardware Level trap user programs

13 Hardware Control (2) Responsible for handling interrupts and for communicating with the machine. Devices such as disks or terminals may interrupt the CPU while a process is executing

Topics to be covered File subsystem Process control subsystem (Memory Management) Signal IPC (Inter-Process Communication), Synchronization UNIX System Programming (System Calls)

Reference Books The design of the UNIX Operating System, M. J. Bach UNIX Internals : The New Frontiers, U. Vahalia Advanced Programming in the Unix Environment, 2 nd Edition, W. R. Stevens, S. A. Rago