Question

1 Mark Question Two Consider a file system on a disk that has both logical and physical block sizes of 512 tebytes. Assume that the information about each file is already in memory. For each of the three allocation strategies (contiguous, linked, and indexed), answer these at questions: a. How is the logical-to-physical address mapping accomplished in this system? (For the indexed allocation, assume that a file is always less than 512 blocks long.) b. If we are currently at logical block 10 (the last block accessed was block 10) and want to access logical block 4, how many physical blocks must be read from the disk? Answer

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

Solution:

suppose z is the starting file address

NOw,

Contiguous:

In this strategy: Divide the logical address by 512 and after it let's say D is the dividend and R is the remainder

D+z will be the physical block number. and the remainder R is the displacement into the block.

Linked:

In this strategy: Divide the logical address by 511 and after it let's say D is the dividend and R is the remainder

D+1 is the physical block number in the list, and R+1 is the displacement.

Indexed:

In this strategy: Divide the logical address by 512 and after it let's say D is the dividend and R is the remainder

The physical block address is indexed at D, and in the block.t, and R+1 is the displacement.

2)

I f we are currently at logical block 10 and want to access logical block 4, for that number of physical blocks must be read from the disk is :

Linked, the number of physical blocks must be read from the disk is 4.

Contiguous, the number of physical blocks must be read from the disk is 1.

Indexed, the number of physical blocks must be read from the disk is 2.

I hope this helps if you find any problem. Please comment below. Don't forget to give a thumbs up if you liked it. :)

Add a comment
Know the answer?
Add Answer to:
1 Mark Question Two Consider a file system on a disk that has both logical and...
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
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
ADVERTISEMENT