Professional Documents
Culture Documents
LINUX System: Lecture 7: Bong-Soo Sohn
LINUX System: Lecture 7: Bong-Soo Sohn
Bong-Soo Sohn
hardware control
kernel Level
hardware Level
hardware
2
System calls & Libraries
user programs
trap libraries
user Level
kernel Level
hardware control
kernel Level
hardware Level
hardware
3
System calls & Libraries
• System call library
– OS service in the form of C function call
hardware control
kernel Level
hardware Level
hardware
5
File Subsystem (2)
• Managing files and structures of file system
• Allocating file space
• Administering free space
• Controlling access to files
• Retrieving data for users
6
Buffering Mechanism (1)
user programs
trap libraries
user Level
kernel Level
hardware control
kernel Level
hardware Level
hardware
7
Buffering Mechanism (2)
• Interact with block I/O device drivers to
initiate data transfer to and from kernel.
8
Process Control Subsystem
(1)
user programs
trap libraries
user Level
kernel Level
hardware control
kernel Level
hardware Level
hardware
9
Process Control Subsystem
(2)
• Managing process structures (proc table, u table,…)
• Process scheduling
• Interprocess communication (IPC)
• Memory management
• Responsible for process synchronization.
10
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.
11
Hardware Control (1)
user programs
trap libraries
user Level
kernel Level
hardware control
kernel Level
hardware Level
hardware
12
Hardware Control (2)
• Responsible for handling interrupts and
for communicating with the machine.
13
Topics to be covered
• File subsystem
• Process control subsystem
• (Memory Management)
• Signal
• IPC (Inter-Process Communication),
Synchronization