cop4600-sp08-quiz3Solutions

cop4600-sp08-quiz3Solutions - n in a system that uses a...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
COP4600 Operating Systems Solutions for Quiz 3 Prepared by Tuba Yavuz-Kahveci University of Florida tyavuz@cise.ufl.edu Questions There are two questions. Please read the questions carefully. Good luck! 1. (3.5 pts) This question has two parts: (a) What is buFer cache (block cache)? Answer: BuFer cache is part of the main memory that holds some of the disk blocks that have been read/written or may be read and it is used to avoid some of the disk accesses. Since accessing the main memory is faster then accessing the disk using a buFer cache improves the performance. (b) Write a pseudocode to explain the process of reading disk block
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: n in a system that uses a buFer cache. In your algorithm also consider block replacement at a high level, i.e., which replacement algorithm is used is not important. Answer: if block n is in buffer cache then return it else if no available slot in buffer cache then evict one block and write to disk if changed read block n from the disk store it in an available slot of the buffer cache return it 2. (1.5 pts) What type of information is kept in an i-node? Answer: Two types of information: attributes (le length, time of last ac-cess, protection, etc) and disk block addresses (direct and indirect)....
View Full Document

Ask a homework question - tutors are online