Consider a file currently consisting of 100 blocks. Assume that the filecontrol block (and the index block, in the case of indexed allocation) is already in memory. Calculate how many disk I/O operations are required for contiguous, linked, and indexed (single-level) allocation strategies, if, for one block, the following conditions hold. In the contiguous-allocation case, assume that there is no room to grow at the beginning but there is room to grow at the end. Also assume that the block information to be added is stored in memory. a. The block is added at the beginning. b. The block is added in the middle. c. The block is added at the end. d. The block is removed from the beginning. e. The block is removed from the middle. f. The block is removed from the end.
Read moreTable of Contents
1
Introduction
2
Operating - CHAPTER
System
Structures
3
Processes
4
Threads
5
Process
Synchronization
6
CPU
Scheduling
7
Deadlocks
8
Main Memory
9
Virtual
Memory
10
Mass -Storage
Structure
11
File -System
Interface
12
File -System
Implementation
13
I/O Systems
14
Protection
15
Security
16
Virtual Machines
17
Distributed
Systems
18
The Linux
System
19
Windows 7
20
Influential Operating
Systems
Textbook Solutions for Operating System Concepts
Chapter 12 Problem 12.10
Question
Contrast the performance of the three techniques for allocating diskblocks (contiguous, linked, and indexed) for both sequential andrandom file access.
Solution
The first step in solving 12 problem number 10 trying to solve the problem we have to refer to the textbook question: Contrast the performance of the three techniques for allocating diskblocks (contiguous, linked, and indexed) for both sequential andrandom file access.
From the textbook chapter File -System
Implementation you will find a few key concepts needed to solve this.
Visible to paid subscribers only
Step 3 of 7)Visible to paid subscribers only
Subscribe to view the
full solution
full solution
Title
Operating System Concepts 9
Author
Abraham Silberschatz, Peter B. Galvin, Greg Gagne
ISBN
9781118063330