← Back
ExercisesBy topic

Sistemi operativi 7 Esercizi concatenati

Study material for Architettura dei Calcolatori e Sistemi Operativi, shared by the Studwiz community and reviewed by moderators.

Architettura dei Calcolatori e Sistemi OperativiBy topic

Document information

What's included in this study material

Study material for Architettura dei Calcolatori e Sistemi Operativi, shared by the Studwiz community and reviewed by moderators.

Import quality: text was extracted directly from the original document.

Extracted content from the document

Representative passages recognised in different parts of the material. The full extracted text remains available to search, while this compact preview makes the page easier to read.

Page 1

Memoria: 13 Esercizi concatenati parametri: MAX_FREE: 3 MIN_FREE: 2 MEM_SIZE: 10 INITIAL_STAC K_SIZE: 3 eventi: 1. exec(2, 0, 0, 4, 4001FA,"X") 2. fork("Q") 3. write ("Pd0", "Pp0", "Pp1”) 4. read("Pc0", "Pp0"), 4 kswapd 5. fork("R") 6. write("Pd1", "pd2") 7. read("Pc0", "Pp0", "pp1"), 4 kswapd 8. write("Pp2") 9. read("Pd0") 10. write("Pd0") 11. contextSwitch("R"), write(“Rp0”) 12. write("Rd0") 13. exit("P"), write(“Pp2”) Soluzione (si riportano solo le strutture dati modificate – colorati gli aspetti più significativi, in rosso le aggiunte, in blu le pagine cancellate, in verde le pagine fisiche liberate da PFRA) 1 - exec(2, 0, 0, 4, 4001FA,"X") PROCESSO: P ********************************************************* VMA : C 000000400, 2 , R , P , M , <X,0> D 000000600, 4 , W , P , A , <‐1,0> P 7FFFFFFFC, 3 , W , P , A , <‐1,0> PT: <c0 :1 R> <c1 :‐ ‐> <d0 :‐ ‐> <d1 :‐ ‐> <d 2 :‐ ‐> <d3 :‐ ‐> <p0 :2 W> <p1 :‐ ‐> <p2 :‐ ‐> process P ‐ NPV of PC and SP: c0, p0 ____MEMORIA FISICA____(pagine libere: 7)_________________________ 00 : <ZP> || 01 : Pc0/<X,0> || 02 : Pp0 || 03 : ‐‐‐‐ || 04 : ‐‐‐‐ || 05 : ‐‐‐‐ || 06 : ‐‐‐‐ || 07 : ‐‐‐‐ || 08 : ‐‐‐‐ || 09 : ‐‐‐‐ || ____STATO del TLB________________________________________________ Pc0 : 01 ‐ 0: 1: || Pp0 : 02 ‐ 1: 1: || ‐‐‐‐‐ || ‐‐‐‐‐ || SWAP FILE: ‐‐‐‐, ‐‐‐‐, ‐‐‐‐, ‐‐‐‐, ‐‐‐‐, ‐‐‐‐, LRU ACTIVE: PP0, PC0, LRU INACT IVE: 2. fork("Q") – si evidenziano gli aspetti relativi alla pagina in cima alla pila PROCESSO: P ********************************************************* VMA : C 000000400, 2 , R , P , M , <X,0> D 000000600, 4 , W , P , A , <‐1,0> P 7FFFFFFFC, 3 , W , P , A , <‐1,0> PT: <c0 :1 R> <c1 :‐ ‐> <d0 :‐ ‐> <d1 :‐ ‐> <d2 :‐ ‐> <d3 :‐ ‐> <p0 :3 W> <p1 :‐ ‐> <p2 :‐ ‐> process P ‐ NPV of PC and SP: c0, p0 PROCESSO: Q…

Preview

First page of the document.

First page: Sistemi operativi 7 Esercizi concatenati