357 views
0 votes
0 votes
If the memory is 768 MB and the block’s size is 384 Bytes, what will be the size of the bitmap in Bytes?

I think it should be 2^21 Bytes, but I’m not quite sure.

Could you show me also your solution?

2 Answers

0 votes
0 votes
Bit map or Bit Vector is used for keeping track of all those blocks which are free. A bit is stored for each block, if the bit value is '0', that indicates that the block is allocated to some process. If the bit value is '1', it means that the block is allocated to some process.

Here in your problem we can see that no.of blocks =768MB/384B= 2^21 blocks. If we are setting 1 bit for 1 block, then it will be 2^21 bits, so it will be 2^18 Bytes, that will be equal to 256KB.
0 votes
0 votes

I bitmap is used to keep track of blocks which are occupied and not occupied blocks (Holes),

for the entire memory we create an array. And the size of array depends on the number of blocks that are present in the Main memory, since for every block we are maintaining 1 bit.

so, 768MB/384B=2^21 bits..... 

now convert 2^21 bits to the standard bytes system....you will get around 256 KB.....

 

Related questions

1 votes
1 votes
1 answer
1
Daniel Nikolov asked Feb 4, 2019
263 views
If the memory is 768 MB and the block’s size is 384 Bytes, what will be the size of the bitmap in Bytes?I think it should be 2^21 Bytes, but I’m not quite sure.Could ...
0 votes
0 votes
0 answers
4
Nandkishor3939 asked Jan 25, 2019
499 views
Even after seeing the solution I was unable to understand this question:Can any one tell whats happening here: