Operating System Structures (Chapter 2) : References
Operating System Structures (Chapter 2) : References
Lecture 2
Operating System Structures
(chapter 2)
Dr. İbrahim Körpeoğlu
http://www.cs.bilkent.edu.tr/~korpe
References
• The slides here are adapted/modified from the textbook and its slides:
Operating System Concepts, Silberschatz et al., 7th & 8th editions,
Wiley.
REFERENCES
• Operating System Concepts, 7th and 8th editions, Silberschatz et al.
Wiley.
• Modern Operating Systems, Andrew S. Tanenbaum, 3rd edition, 2009.
1
Outline
Objectives
2
Operating System Services
3
Operating System Services
4
OS Services
5
[User-Operating System] Interface - GUI
• Many operating systems now include both CLI and GUI interfaces
– Linux: command shells available (CLI); KDE as GUI
6
The MacOS X GUI
System Calls
7
System Calls
Application
(a process, a Application
running program)
System Calls
…
user level code
8
Example of System Calls
• System call sequence to copy the contents of one file to another file
9
System Call Implementation
10
Standard C Library Example
• C program invoking printf() library call, which calls write() system call
11
Parameter Passing via Table
• Process control
• File management
• Device management
• Information maintenance
• Communications
• Protection
12
Examples of Windows and Unix System
Calls
System Programs
13
System Programs
• create file: simple system program that can just call “create”
system call or something similar
• compiler: complex system program
System Programs
Users
System Programs Other User Applications
System Calls
Kernel
14
User
System Calls
Rest of Kernel
OS Structure
• Layered Approach
• Microkernel Approach
• Modules Approach
15
Simple Structure
Layered Approach
16
Unix
17
Layered Operating System
18
Modules
19
End of Lecture
20