MOS-3e-01 [Introduction].pdf
-
Upload
gembel-ganteng -
Category
Documents
-
view
19 -
download
0
Transcript of MOS-3e-01 [Introduction].pdf
-
5/23/2018 MOS-3e-01 [Introduction].pdf
1/33
MODERN OPERATING SYSTEMSThird Edition
ANDREW S. TANENBAUM
Chapter 1
Introdution
Tanenbaum, Modern Operating Systems 3 e, (c) 2008 Prentice-Ha, !nc" # rig$ts reser%ed" 0-&3-6006639
-
5/23/2018 MOS-3e-01 [Introduction].pdf
2/33
What I! An Operatin" S#!te$ %1&
A $odern o$puter on!i!t! o'(
) One or $ore proe!!or!
) Main $e$or#) Di!*!
) Printer!
) +ariou! input,output de-ie!
Mana"in" a the!e o$ponent! re/uire! a a#er o'
!o't0are the operating system
Tanenbaum, Modern Operating Systems 3 e, (c) 2008 Prentice-Ha, !nc" # rig$ts reser%ed" 0-&3-6006639
-
5/23/2018 MOS-3e-01 [Introduction].pdf
3/33
What I! An Operatin" S#!te$ %2&
3i"ure 141. Where the operatin" !#!te$ 'it! in.
Tanenbaum, Modern Operating Systems 3 e, (c) 2008 Prentice-Ha, !nc" # rig$ts reser%ed" 0-&3-6006639
-
5/23/2018 MOS-3e-01 [Introduction].pdf
4/33
The Operatin" S#!te$ a! an E5tended
Mahine
3i"ure 142. Operatin" !#!te$! turn u"# hard0are into 6eauti'u
a6!tration!.Tanenbaum, Modern Operating Systems 3 e, (c) 2008 Prentice-Ha, !nc" # rig$ts reser%ed" 0-&3-6006639
-
5/23/2018 MOS-3e-01 [Introduction].pdf
5/33
The Operatin" S#!te$ a! a Re!oure
Mana"er
) Ao0 $utipe pro"ra$! to run at the !a$e ti$e
) Mana"e and protet $e$or#7 I,O de-ie!7 and
other re!oure!) Inude! $utipe5in" %!harin"& re!oure! in t0o
di''erent 0a#!(
) In ti$e
) In !pae
Tanenbaum, Modern Operating Systems 3 e, (c) 2008 Prentice-Ha, !nc" # rig$ts reser%ed" 0-&3-'00''3
-
5/23/2018 MOS-3e-01 [Introduction].pdf
6/33
Co$puter 8ard0are Re-ie0
3i"ure 149. So$e o' the o$ponent!
o' a !i$pe per!ona o$puter.Tanenbaum, Modern Operating Systems 3 e, (c) 2008 Prentice-Ha, !nc" # rig$ts reser%ed" 0-&3-'00''3
-
5/23/2018 MOS-3e-01 [Introduction].pdf
7/33
CPU Pipeinin"
3i"ure 14:. %a& A three4!ta"e pipeine. %6& A !uper!aar CPU.
Tanenbaum, Modern Operating Systems 3 e, (c) 2008 Prentice-Ha, !nc" # rig$ts reser%ed" 0-&3-'00''3
-
5/23/2018 MOS-3e-01 [Introduction].pdf
8/33
3i"ure 14;. %a& A /uad4ore hip 0ith a !hared
-
5/23/2018 MOS-3e-01 [Introduction].pdf
9/33
3i"ure 14=. A t#pia $e$or# hierarh#.
The nu$6er! are -er# rou"h appro5i$ation!.
Me$or# %1&
Tanenbaum, Modern Operating Systems 3 e, (c) 2008 Prentice-Ha, !nc" # rig$ts reser%ed" 0-&3-6006639
-
5/23/2018 MOS-3e-01 [Introduction].pdf
10/33
>ue!tion! 0hen deain" 0ith ahe(
) When to put a ne0 ite$ into the ahe.
) Whih ahe ine to put the ne0 ite$ in.
) Whih ite$ to re$o-e 'ro$ the ahe 0hen a
!ot i! needed.
) Where to put a ne0# e-ited ite$ in the ar"er$e$or#.
Me$or# %2&
Tanenbaum, Modern Operating Systems 3 e, (c) 2008 Prentice-Ha, !nc" # rig$ts reser%ed" 0-&3-6006639
-
5/23/2018 MOS-3e-01 [Introduction].pdf
11/33
3i"ure 141?. Struture o' a di!* dri-e.
Di!*!
Tanenbaum, Modern Operating Systems 3 e, (c) 2008 Prentice-Ha, !nc" # rig$ts reser%ed" 0-&3-6006639
-
5/23/2018 MOS-3e-01 [Introduction].pdf
12/33
3i"ure 1411. %a& The !tep! in !tartin" an I,O de-ie and
"ettin" an interrupt.
I,O De-ie!
Tanenbaum, Modern Operating Systems 3 e, (c) 2008 Prentice-Ha, !nc" # rig$ts reser%ed" 0-&3-6006639
-
5/23/2018 MOS-3e-01 [Introduction].pdf
13/33
3i"ure 1412. The !truture o' a ar"e Pentiu$ !#!te$
Bu!e!
Tanenbaum, Modern Operating Systems 3 e, (c) 2008 Prentice-Ha, !nc" # rig$ts reser%ed" 0-&3-6006639
-
5/23/2018 MOS-3e-01 [Introduction].pdf
14/33
The Operatin" S#!te$ @oo
) Main'ra$e operatin" !#!te$!
) Ser-er operatin" !#!te$!
) Mutiproe!!or operatin" !#!te$!
) Per!ona o$puter operatin" !#!te$!
) 8andhed operatin" !#!te$!
) E$6edded operatin" !#!te$!
) Rea4ti$e operatin" !#!te$!
Tanenbaum, Modern Operating Systems 3 e, (c) 2008 Prentice-Ha, !nc" # rig$ts reser%ed" 0-&3-'00''3
-
5/23/2018 MOS-3e-01 [Introduction].pdf
15/33
) Proe!!e!) Addre!! !pae!
) 3ie!
)Input,Output
) Protetion
) The !he
Operatin" S#!te$ Conept!
Tanenbaum, Modern Operating Systems 3 e, (c) 2008 Prentice-Ha, !nc" # rig$ts reser%ed" 0-&3-6006639
-
5/23/2018 MOS-3e-01 [Introduction].pdf
16/33
Proe!!e!
3i"ure 141. A proe!! tree. Proe!! A reated t0o hidproe!!e!7 B and C. Proe!! B reated three hid
proe!!e!7 D7 E7 and 3.
Tanenbaum, Modern Operating Systems 3 e, (c) 2008 Prentice-Ha, !nc" # rig$ts reser%ed" 0-&3-'00''3
-
5/23/2018 MOS-3e-01 [Introduction].pdf
17/33
3i"ure 141. A 'ie !#!te$ 'or a uni-er!it# depart$ent.
3ie! %1&
Tanenbaum, Modern Operating Systems 3 e, (c) 2008 Prentice-Ha, !nc" # rig$ts reser%ed" 0-&3-6006639
-
5/23/2018 MOS-3e-01 [Introduction].pdf
18/33
3i"ure 141. %a& Be'ore $ountin"7 the 'ie! on the CD4ROM are not
ae!!i6e. %6& A'ter $ountin"7 the# are part o' the 'ie
hierarh#.
3ie! %2&
Tanenbaum, Modern Operating Systems 3 e, (c) 2008 Prentice-Ha, !nc" # rig$ts reser%ed" 0-&3-6006639
-
5/23/2018 MOS-3e-01 [Introduction].pdf
19/33
3i"ure 1419. T0o proe!!e! onneted 6# a pipe.
3ie! %&
Tanenbaum, Modern Operating Systems 3 e, (c) 2008 Prentice-Ha, !nc" # rig$ts reser%ed" 0-&3-6006639
-
5/23/2018 MOS-3e-01 [Introduction].pdf
20/33
3i"ure 141:. The 11 !tep! in $a*in" the !#!te$ a
read%'d7 6u''er7 n6#te!&.
S#!te$ Ca!
Tanenbaum, Modern Operating Systems 3 e, (c) 2008 Prentice-Ha, !nc" # rig$ts reser%ed" 0-&3-6006639
-
5/23/2018 MOS-3e-01 [Introduction].pdf
21/33
3i"ure 141;. So$e o' the $aor POSI !#!te$ a!.
S#!te$ Ca! 'or Proe!! Mana"e$ent
Tanenbaum, Modern Operating Systems 3 e, (c) 2008 Prentice-Ha, !nc" # rig$ts reser%ed" 0-&3-6006639
-
5/23/2018 MOS-3e-01 [Introduction].pdf
22/33
3i"ure 141;. So$e o' the $aor POSI !#!te$ a!.
S#!te$ Ca! 'or 3ie Mana"e$ent %1&
Tanenbaum, Modern Operating Systems 3 e, (c) 2008 Prentice-Ha, !nc" # rig$ts reser%ed" 0-&3-6006639
-
5/23/2018 MOS-3e-01 [Introduction].pdf
23/33
3i"ure 141;. So$e o' the $aor POSI !#!te$ a!.
S#!te$ Ca! 'or 3ie Mana"e$ent %2&
Tanenbaum, Modern Operating Systems 3 e, (c) 2008 Prentice-Ha, !nc" # rig$ts reser%ed" 0-&3-6006639
-
5/23/2018 MOS-3e-01 [Introduction].pdf
24/33
3i"ure 141;. So$e o' the $aor POSI !#!te$ a!.
Mi!eaneou! S#!te$ Ca!
Tanenbaum, Modern Operating Systems 3 e, (c) 2008 Prentice-Ha, !nc" # rig$ts reser%ed" 0-&3-6006639
-
5/23/2018 MOS-3e-01 [Introduction].pdf
25/33
3i"ure 141=. A !tripped4do0n !he.
A Si$pe She
Tanenbaum, Modern Operating Systems 3 e, (c) 2008 Prentice-Ha, !nc" # rig$ts reser%ed" 0-&3-6006639
-
5/23/2018 MOS-3e-01 [Introduction].pdf
26/33
3i"ure 142?. Proe!!e! ha-e three !e"$ent!(
te5t7 data7 and !ta*.
Me$or#
-
5/23/2018 MOS-3e-01 [Introduction].pdf
27/33
3i"ure 1421. %a& T0o diretorie! 6e'ore in*in"/usr/jim/memo to
a!tF! diretor#. %6& The !a$e diretorie! a'ter in*in".
-
5/23/2018 MOS-3e-01 [Introduction].pdf
28/33
3i"ure 1422. %a& 3ie !#!te$ 6e'ore the $ount.
%6& 3ie !#!te$ a'ter the $ount.
Mountin"
Tanenbaum, Modern Operating Systems 3 e, (c) 2008 Prentice-Ha, !nc" # rig$ts reser%ed" 0-&3-6006639
-
5/23/2018 MOS-3e-01 [Introduction].pdf
29/33
Monoithi !#!te$! 6a!i !truture(
) A $ain pro"ra$ that in-o*e! the re/ue!ted
!er-ie proedure.
) A !et o' !er-ie proedure! that arr# out the
!#!te$ a!.
) A !et o' utiit# proedure! that hep the !er-ieproedure!.
Operatin" S#!te$! Struture
Tanenbaum, Modern Operating Systems 3 e, (c) 2008 Prentice-Ha, !nc" # rig$ts reser%ed" 0-&3-6006639
-
5/23/2018 MOS-3e-01 [Introduction].pdf
30/33
3i"ure 1429. Struture o' the MINI !#!te$.
Miro*erne!
Tanenbaum, Modern Operating Systems 3 e, (c) 2008 Prentice-Ha, !nc" # rig$ts reser%ed" 0-&3-6006639
-
5/23/2018 MOS-3e-01 [Introduction].pdf
31/33
3i"ure 142:. The ient4!er-er $ode o-er a net0or*.
Cient4Ser-er Mode
Tanenbaum, Modern Operating Systems 3 e, (c) 2008 Prentice-Ha, !nc" # rig$ts reser%ed" 0-&3-6006639
-
5/23/2018 MOS-3e-01 [Introduction].pdf
32/33
3i"ure 142=. %a& A t#pe 1 h#per-i!or. %6& A t#pe 2 h#per-i!or.
+irtua Mahine!
Tanenbaum, Modern Operating Systems 3 e, (c) 2008 Prentice-Ha, !nc" # rig$ts reser%ed" 0-&3-6006639
-
5/23/2018 MOS-3e-01 [Introduction].pdf
33/33
3i"ure 14?. The proe!! o' o$piin" C and header 'ie! to
$a*e an e5euta6e.
The Mode o' Run Ti$e