Pertemuan 3 Konsep Sistem Operasi Matakuliah : T0316/sistem Operasi

advertisement
Matakuliah
Tahun
Versi/Revisi
: T0316/sistem Operasi
: 2005
:5
Pertemuan 3
Konsep Sistem Operasi
1
Learning Outcomes
Pada akhir pertemuan ini, diharapkan mahasiswa
akan mampu :
• menjelaskan istilah dan konsep sistem operasi
(C2)
2
Outline Materi
Konsep
– Processes
– Deadlock
– Memory
management
– I/O
– File
– Shell
– System call
Struktur
–Monolithic
–Layered
–Virtual machine
–Exokernels
–Client-Server
3
 OPERATING SYSTEM CONCEPT
Process
- Program in execution
- Consist of:
o Executable program, data, stack
o Program counter, stack pointer, registers
- Process table  array or linked list of structure of the process in
execution
- Process has:
o Address space (core image)
o Attribute/information in the process table
4
- A process tree:
5
Deadlock
- Condition in which interacting process cannot be continued and
there is no process that can get out of that condition.
(a) A potential deadlock. (b) an actual deadlock.
6
Memory Management
- Multiple program dalam memory  needs:
o Protection
o Address space management
Input/Output
- Independent I/O software
- Device dependent, eg. device drivers
7
 Files
- Directory
- Pathname
- Protection mode
 rwx bits
- File descriptor
8
- Mounted file system
Before mounting
After mounting
- Special file
o Block
o Character
- Pipe
9
 Security
- Protection, eg. rwx bits
- Intruders, from human or non-human (eg. virus)
 Shell
- Unix command interpreter
- Prompt
Example:
date
date > file
sort < file1 > file2
cat file1 file2 file3 | sort > /dev/lp
cat file1 file2 file3 | sort > /dev/lp &
- Background job
10
SYSTEM CALLS
Interface between user program and operating system
Steps in Making a
System Call
11
- Example of system calls:
o Process Management
12
o File Management
o Directory and file
system
management
13
o Miscellaneous
14
 OPERATING SYSTEM STRUCTURE
Monolithic system
- The big mess
- No structure
Simple structuring model
15
Layered System
- Hierarchical layer, each layer is built on top of the layer
below it.
- Eg: THE system
Generalisation of layering concept at MULTICS  concentric ring
16
Virtual Machine
- Virtual machine monitor  not an extended machine, but an
exact copy of the bare hardware
- CMS (Conversational Monitor System)
- JVM (Java Virtual Machine)
Structure of VM/370 with CMS
17
Exokernels
- Designed for a system that gives each user clone of the actual
computer, but with a subset of resources
- Program run on the bottom layer to allocate resources to
virtual machine
18
Client-server model
- Mikrokernel
- Client process
- Server process
- Mechanism vs policy
The client-server model
19
The client-server model in a distributed system
Advantages of distributed system model:
- Smaller parts are easier to maintain
- No direct access toward hardware
- Adaptability
20
Download