The Gateway to Computer Science Excellence
0 votes
17 views

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.
in Operating System by Veteran (59.1k points) | 17 views

1 Answer

0 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

 

by Boss (19.1k points)

Related questions

Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true
50,737 questions
57,337 answers
198,448 comments
105,203 users