Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
A
Appunti
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Gianluca Mastrolonardo
Appunti
Commits
f9ee45df
Commit
f9ee45df
authored
10 months ago
by
Gianluca
Browse files
Options
Downloads
Patches
Plain Diff
per ora es finiti
parent
549b6f41
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Sistemi_Operativi_2/Esame/EsempioEsame.md
+31
-1
31 additions, 1 deletion
Sistemi_Operativi_2/Esame/EsempioEsame.md
with
31 additions
and
1 deletion
Sistemi_Operativi_2/Esame/EsempioEsame.md
+
31
−
1
View file @
f9ee45df
...
...
@@ -237,4 +237,34 @@ La parity addittiva avrebbe fatto la lettura di tutte le strip vecchie della str
Quindi in questo caso di b[0], b[2], e b[4]. Per un totale di 5 letture
e 2 scritture, ovvero la strip da modificare e la strip di parità.
Invece la parity sottrattiva usa solo due letture e due scritture.
Invece la parity sottrattiva usa solo due letture e due scritture per ognuna delle
strip da modificare.
**Domanda 6:**
Si consideri uno schema di indirizzamento CHS in cui sono utilizzati 8 bit per il
numero di cilindri, 6 bit per il numero di testine,
e 10 bit per il numero di settori per
traccia.
Si converta l'indirizzo LBA 11400145 in notazione CHS (C,H,S).
Mostrare i calcoli (non farlo equivale a subire una penalizzazione nel punteggio).
**Risposta:**
Per prima cosa trasforiamo il numero di bit in numero totale di
cilindri, testine e settori.
$N_C = 2^{8} =256$
$N_H = 2^{6} =64$
$N_S = 2^{10} =1024$
Ora possiamo effettuare la conversione da LBA a CHS.
$c = LBA / (N_H
\t
imes N_S)
\r
ightarrow 11400145 / (64
\t
imes 1024) = 173$
$h = (LBA / N_S)
\m
od N_H
\r
ightarrow (11400145 / 1024)
\m
od 64 = 60$
$s = (LBA
\m
od N_S)+1
\r
ightarrow (11400145
\m
od 1024)+1 = 978$
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment