Professional Documents
Culture Documents
HDH Chuong 1
HDH Chuong 1
HDH Chuong 1
Ni dung
1.1. H iu hnh l g?
1.3. Cu trc h iu hnh
1.2. Cu trc h thng my tnh
1.1. H iu hnh l g?
1.1.1. Cc thnh phn ca h thng my tnh
Cu trc ca my tnh
nh ngha
My tnh ln (mainframes)
X l b (batch)
a chng (multiprogrammed)
Gim setup time bng cch ghp nhm cng vic (batching)
Vd: ghp cc cng vic cng s dng trnh bin dch Fortran
T ng np ln lt cc chng trnh
8
10
Virtual memory
nh thi CPU
ng b cc qu trnh (synchronization)
Giao tip gia cc qu trnh (process communication)
Trnh deadlock
1.13
Nhiu CPU
Chia s computer bus, clock
u im
14
15
16
Client-server
Peer-to-peer (P2P)
17
Phn loi
Hard real-time
Soft real-time
19
Monitor
Printer
USB controller
Graphics adapter
CPU
MEMORY
Start
Fetch Next
Instruction
Execute
Instruction
HALT
Interrupts
disabled
Start
Fetch Next
Instruction
Execute
Instruction
Interrupts
enabled
HALT
Ngt
Qu trnh x l ngt
User
Program
Interrupt vector
table
0
00ffe23f
interrupt
0x21 routine
21
00ffe23f
ret
int. 0x21
i+1
N
ffffffff
M
Interrupt
handler
23
I/O interrupts
Khng c ngt
C ngt
24
Polling
PIO
Interrupt-driven I/O
X
X
1.A.27
kernel
kernel
Synchronous
Asynchronous
- - - : bypassing
28
Asynchronous I/O
1.A.30
H thng lu tr
B nh ph (secondary storage)
1.A.32
Phn cp h thng lu tr
Tc cao
Gi thnh thp
Dung lng ln
1.A.33
C ch caching
Caching
A: d liu
34
Phn cng c thm mode bit kim sot mode hin hnh:
1.A.35
System call
1.A.36
Bo v phn cng B nh
Vd: bo v b nh dng 2 thanh ghi
- Truy cp b nh ngoi vng xc nh bi thanh
ghi base v thanh ghi limit s sinh ra trap
- Lnh np gi tr cho cc thanh ghi base v
thanh ghi limit u l privileged instruction
(b)
(a)
37
Bo v CPU
1.A.38
Timer
1.A.39
Cu Trc H iu Hnh
My o (virtual machine)
40
To v hy tin trnh
Cung cp cc c ch
khng ch deadlock
41
Qun l b nh chnh
42
File
Th mc
To v xo file/th mc.
43
C chc nng
44
H thng bo v
Khi h thng cho php nhiu user hay nhiu tin trnh
Phng tin thi hnh cc chnh sch (enforcement of policies) Chnh sch:
cn bo v d liu ca ai i vi ai
46
47
Cc dch v h iu hnh
Pht hin li
48
HH c cc routine tng ng
K ton (accounting)
V d tnh ph
Bo v (protection)
An ninh (security)
System call
H thng n (monolithic)
1.B.52
H thng n (monolithic)
Xem nh c
phn lp:
signals
terminal handling
character I/O system
terminal drivers
file system
swapping
block I/O system
disk and tape drivers
1.A.53
54
Application
File
server
POSIX
application
X-application
X-window
server
POSIX
server
Microkernel
55
My o
processes
programming
interface
kernel
hardware
Non-virtual machine
system model
kernel
kernel
kernel
VM1
VM2
VM3
Virtual-machine
implementation
hardware
56
My o (tt)
Lm th no thc thi mt
chng trnh MS-DOS trn
mt h thng Sun vi h iu
hnh Solaris?
1.
2.
To mt my o Intel bn trn h
iu hnh Solaris v h thng
Sun
Cc lnh Intel (x86) c my
o Intel chuyn thnh lnh tng
ng ca h thng Sun.
Solaris kernel
Sun hardware
1.B.57