22.04.2014 Aufrufe

Eine Methode zur formalen Modellierung von ...

Eine Methode zur formalen Modellierung von ...

Eine Methode zur formalen Modellierung von ...

MEHR ANZEIGEN
WENIGER ANZEIGEN

Erfolgreiche ePaper selbst erstellen

Machen Sie aus Ihren PDF Publikationen ein blätterbares Flipbook mit unserer einzigartigen Google optimierten e-Paper Software.

5.6 Der globale Speicherverwalter 129<br />

Die textuelle Beschreibung wird in die formale Spezikation umgesetzt. Wir verwenden die<br />

bereits in Abschnitt 5.6.1 denierte Menge SwapMsg und<br />

State SW<br />

= Pid SwapMsg <br />

n[<br />

Pages Pi<br />

i=1<br />

Funktionsgleichungen fur f SW<br />

8s 2<br />

Q<br />

n2NMem<br />

S<br />

[Sn] p q 2 n Sid Pi sr 2 SRid b 2 Bid as hs 2 Pages :<br />

i=1<br />

9 g 2 (Pid SwapMsg) ! Type SW h 1 h 2 2 State SW ! Type SW <br />

(1) f SW (fSQtoSW 7! h(pid SwapIn(p b sr) ig s)<br />

= fGStoHS 7! h HSRead(b) ig g(pid SwapIn(p b sr))(s)<br />

(2) g(pid SwapIn(p b sr))(fHStoGS 7! h(b hs) ig s)<br />

= fGStoAS 7! h ASW rite(srhs) i<br />

GSto(pid) 7! h ASIn(p sr) iSWtoSQ 7! h Next ig f SW (s)<br />

(3) f SW (fSQtoSW 7! h(pid SwapInOut((p b) (q sr))) ig s)<br />

= fGStoHS 7! h HSRead(b) iGStoAS 7! h ASRead(sr) ig<br />

g(pid SwapInOut((p b) (q sr)))(s)<br />

(4a) g(pid SwapInOut((p b) (q sr)))(fAStoGS 7! h(sras) i HStoGS 7! h(b hs) ig s)<br />

= fGStoAS 7! h ASW rite(srhs) iGStoHS 7! h HSW rite(b as) i<br />

GSto(pid) 7! h ASIn(p sr)HSIn(q sr) i SW toSQ 7! h Nextig f SW (s)<br />

(4b) g(pid SwapInOut((p b) (q sr)))(fAStoGS 7! h(sras) ig s)<br />

= h 1 (pid SwapInOut((p b) (q sr))as)(s)<br />

(4c) g(pid SwapInOut((p b) (q sr)))(fHStoGS 7! h(b hs) ig s)<br />

= h 2 (pid SwapInOut((p b) (q sr))hs)(s)<br />

(5) h 2 (pid SwapInOut((p b) (q sr))hs)(fAStoGS 7! h(sras) ig s)<br />

= siehe Ausgaben in Punkt (4a)\<br />

"<br />

(6) h 1 (pid SwapInOut((p b) (q sr))as)(fHStoGS 7! h(b hs) ig s)<br />

= siehe Ausgaben in Punkt (4a)\<br />

"<br />

(7) f SW (fSQtoSW 7! h Empty ig s) = fSWtoSQ 7! h Nextig f SW (s)

Hurra! Ihre Datei wurde hochgeladen und ist bereit für die Veröffentlichung.

Erfolgreich gespeichert!

Leider ist etwas schief gelaufen!