1,344 views
0 votes
0 votes
A hard disk has a capacity of 40MB.Disk block size is 2KB.Disk block address is 3 bytes.If the system uses a bit map approach to maintain free space utilization, what is the number of blocks required to store the bit map?

1 Answer

2 votes
2 votes

Size of Disk= 40 MB

Size of Disk Block= 2 KB

Size of DBA= 3 Byte

No. of Disk Blocks= 40MB/2KB= 20K

In Bit Map approach, every disk block will be mapped with one binary bit.

 No. of DiskBlocks we can map in 1 Disk Block= Disk Block Size in bits=2KB= 2K*8 bits=16 K bits

Therefore we can map 16K disk block's  using one disk block.

So to map 20 K disk block's, we need 20K/16K disk blocks= 1.25 Disk Block which is possible in not less than 2 Disk Blocks.

 

Related questions

1 votes
1 votes
2 answers
1
1 votes
1 votes
1 answer
2