Question

After the disk partition is first formatted, the beginning of a free space bitmap looks like...

After the disk partition is first formatted, the beginning of a free space bitmap looks like this: 1000 0000 0000 0000 (the first block is used by the root directory). As we discussed during the lecture, the system always searches for free blocks starting at the lowest numbered block, so after writing file A, which uses six blocks, the bitmap would change to 1111 1110 0000 0000... . Show the bitmap after each of the following actions: a) File B is written, using five blocks; 3 b) File A is deleted; c) File C is written, using eight blocks; d) File B is deleted.

0 0
Add a comment Improve this question Transcribed image text
Answer #1

1000 0000 0000 0000 - (Initial state of bit-map)

1111 1110 0000 0000... (after writing file A. mentioned in question)

now

a) File B is written, using five blocks

1111 1111 1111 0000

b) File A is deleted

1000 0001 1111 0000

c)  File C is written, using eight blocks

1111 1111 1111 1100 (see here, to insert 8 blocks it will re-use 6 block before B, and remaining(8-6=2)block after file B)

d) File B deleted

1111 1110 0000 1100

Add a comment
Know the answer?
Add Answer to:
After the disk partition is first formatted, the beginning of a free space bitmap looks like...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Consider an empty 1 Gbyte disk with the block size of 4096 bytes. When the disk...

    Consider an empty 1 Gbyte disk with the block size of 4096 bytes. When the disk is formatted blocks 0 is occupied for system-related information. The system always allocated free blocks starting st the lowest numbered block, and it uses non-contiguous allocation. Question 6 (2, 4) Consider an empty 1 Gbyte disk with the block size of 4096 bytes. When the disk is formatted blocks 0 is occupied for system-related information. The system always allocates free blocks starting at the...

  • This project will allow you to write a program to get more practice with the stack...

    This project will allow you to write a program to get more practice with the stack and queue data structures, as well as more practice with object-oriented ideas that we explored in the previous projects. In this assignment you will be writing a simulation of an order-fulfillment system for a company like Amazon.com. These companies take orders for products and ship them to customers based on what they have in inventory. For this assignment you will be performing a scaled-back...

  • Assignment 2 In this assignment, you will write two short programs to solve problems using recursion....

    Assignment 2 In this assignment, you will write two short programs to solve problems using recursion. 1. Initial Setup Log in to Unix. Run the setup script for Assignment 2 by typing: setup 2 2. Towers of Hanoi Legend has it that in a temple in the Far East, priests are attempting to move a stack of disks from one peg to another. The initial stack had 64 disks threaded onto one peg and arranged from bottom to top by...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT