LINUX System : Lecture 7 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

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.
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.
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.
Contact Information Office: 225 Neville Hall Office Hours: Monday and Wednesday 12:00-1:00 and by appointment.
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,
30 October Agenda for Today Introduction and purpose of the course Introduction and purpose of the course Organization of a computer system Organization.
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,
OS, , Part I Operating - System Structures Department of Computer Engineering, PSUWannarat Suntiamorntut.
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.
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.
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.
Introduction to Operating Systems Concepts
Introduction to Kernel
Module 12: I/O Systems I/O hardware Application I/O Interface
Applied Operating System Concepts
Operating Systems CMPSC 473
CS 6560: Operating Systems Design
Protection of System Resources
Operating Systems: A Modern Perspective, Chapter 6
KERNEL ARCHITECTURE.
CGS 3763 Operating Systems Concepts Spring 2013
2P13 Week 2.
CPSC 457 Operating Systems
I/O Systems I/O Hardware Application I/O Interface
Operating System Concepts
13: I/O Systems I/O hardwared Application I/O Interface
CS703 - Advanced Operating Systems
Mid Term review CSC345.
Linux Architecture Overview.
Operating Systems Lecture 1.
Chapter 13: I/O Systems I/O Hardware Application I/O Interface
Operating Systems: A Modern Perspective, Chapter 3
Implementing Processes, Threads, and Resources
System Calls System calls are the user API to the OS
Implementing Processes, Threads, and Resources
Contact Information Office: 225 Neville Hall Office Hours: Monday and Wednesday 12:00-1:00 and by appointment. Phone:
Operating Systems Structure
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 Lecture notes acknowledgement : The design of UNIX Operating System

Architecture of the UNIX user programs libraries user Level kernel Level system call interface file subsystem process control subsystem inter-process communication scheduler memory management buffer cache 좌측에 파일서브시스템과 우측에 프로세스 서브시스템이 가장 핵심되는 축이 된다. 3종류의 레벨로 나뉘어져 있다 – user level, kernel level, hardware level device drivers character block hardware control kernel Level hardware Level hardware

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

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

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

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 …

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

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

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

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 … 파일시스템과 프로세스 컨트롤 시스템간의 서로 연계되는 때는 프로그램 실행을 위해서 메모리에 프로그램을 로딩할 때이다.

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.

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

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 Advanced Programming in the Unix Environment, 2nd Edition, W. R. Stevens, S. A. Rago