3,583 views
2 votes
2 votes
consider unspanned blocking with 20 byte blocks. A file contains records of sizes 2,5,3,7,4,20 bytes.

the percentage of space wasted if blocks are allocated for file is?

my answer is 47.5.but they are given 31.66.please explain it.

1 Answer

Best answer
4 votes
4 votes

1​​​s​t 20 byte block 2,5,3,7 -> 3B wastage

2nd block   4,  -> 16B wastage

3rd block  20 -> 0B  wastage

total byte = 60B

So %Space waste = (19/60)*100= 0.316631*100 = 31.66%

edited by

Related questions

2 votes
2 votes
1 answer
1
Kapil asked Sep 29, 2016
966 views
Check whether the given schedule is conflict serializable or not ? R2(A); R3(C); W3(A); W2(A); W2(B); W3(C); R1(A); R1(B); W1(A); W1(B)
1 votes
1 votes
1 answer
2
gate-17 asked Jul 27, 2016
396 views
3 votes
3 votes
2 answers
3