edited by
2,824 views
9 votes
9 votes

The beginning of a free-space bitmap looks like this after the disk partition is first formatted$:\: 1000\: 0000\: 0000\: 0000$ (the first block is used by the root directory). The system always searches for free blocks starting at the lowest-numbered block, so after writing file $A,$ which uses six blocks, the bitmap looks like this$:\: 1111\: 1110\: 0000\: 0000.$ Show the bitmap after each of the following additional actions:

  1. File $B$ is written, using five blocks.
  2. File $A$ is deleted.
  3. File $C$ is written, using eight blocks.
  4. File $B$ is deleted.
edited by

1 Answer

10 votes
10 votes

Answer:

Action Bitmap State
File B is written, using five blocks.  1111 1111 1111 0000
File A is deleted. 1000 0001 1111 0000
File C is written, using eight blocks. 1111 1111 1111 1100
File B is deleted. 1111 1110 0000 1100

 

Related questions

1 votes
1 votes
3 answers
3
admin asked Oct 27, 2019
1,916 views
Consider a $4-TB$ disk that uses $4-KB$ blocks and the free-list method. How many block addresses can be stored in one block?
0 votes
0 votes
1 answer
4