linux system lecture 7 l.
Download
Skip this Video
Loading SlideShow in 5 Seconds..
LINUX System : Lecture 7 PowerPoint Presentation
Download Presentation
LINUX System : Lecture 7

Loading in 2 Seconds...

play fullscreen
1 / 15

LINUX System : Lecture 7 - PowerPoint PPT Presentation


  • 155 Views
  • Uploaded on

LINUX System : Lecture 7. Bong-Soo Sohn. Lecture notes acknowledgement : The design of UNIX Operating System. process control subsystem. inter-process communication. scheduler. memory management. character. block. device drivers. kernel Level hardware Level.

loader
I am the owner, or an agent authorized to act on behalf of the owner, of the copyrighted work described.
capcha
Download Presentation

PowerPoint Slideshow about 'LINUX System : Lecture 7' - hien


An Image/Link below is provided (as is) to download presentation

Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.


- - - - - - - - - - - - - - - - - - - - - - - - - - E N D - - - - - - - - - - - - - - - - - - - - - - - - - -
Presentation Transcript
linux system lecture 7

LINUX System : Lecture 7

Bong-Soo Sohn

Lecture notes acknowledgement : The design of UNIX Operating System

architecture of the unix

process

control

subsystem

inter-process

communication

scheduler

memory

management

character

block

device drivers

kernel Level

hardware Level

Architecture of the UNIX

user programs

libraries

trap

user Level

kernel Level

system call interface

file subsystem

buffer cache

hardware control

hardware

system calls libraries

process

control

subsystem

inter-process

communication

scheduler

memory

management

character

block

device drivers

kernel Level

hardware Level

System calls & Libraries

user programs

libraries

trap

user Level

kernel Level

system call interface

system call interface

file subsystem

buffer cache

hardware control

hardware

system calls libraries4
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

subsystem

inter-process

communication

scheduler

memory

management

character

block

device drivers

kernel Level

hardware Level

File Subsystem (1)

user programs

libraries

trap

user Level

kernel Level

system call interface

file subsystem

buffer cache

hardware control

hardware

file subsystem 2
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

process

control

subsystem

inter-process

communication

scheduler

memory

management

character

block

device drivers

kernel Level

hardware Level

Buffering Mechanism (1)

user programs

libraries

trap

user Level

kernel Level

system call interface

file subsystem

buffer cache

hardware control

hardware

buffering mechanism 2
Buffering Mechanism (2)
  • Interact with block I/O device drivers to initiate data transfer to and from kernel.
process control subsystem 1

process

control

subsystem

inter-process

communication

scheduler

memory

management

character

block

device drivers

kernel Level

hardware Level

Process Control Subsystem (1)

user programs

libraries

trap

user Level

kernel Level

system call interface

file subsystem

buffer cache

hardware control

hardware

process control subsystem 2
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
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

subsystem

inter-process

communication

scheduler

memory

management

character

block

device drivers

kernel Level

hardware Level

Hardware Control (1)

user programs

libraries

trap

user Level

kernel Level

system call interface

file subsystem

buffer cache

hardware control

hardware

hardware control 2
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
Topics to be covered
  • File subsystem
  • Process control subsystem
  • (Memory Management)
  • Signal
  • IPC (Inter-Process Communication), Synchronization
  • UNIX System Programming (System Calls)
reference books
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, 2nd Edition, W. R. Stevens, S. A. Rago