Chapter 3
Chapter 3
Chapter 3
10
Computer Engineering
11
Computer Engineering
12
Computer Engineering
13
Computer Engineering
FileB: 5 9 12
FileC: 10 3 13
By using the FAT concept the disk driver can allocate blocks randomly over the disk area, and there is
no problem of ‘‘holes’ ’ developing. This system is used in the MSDOS operating system.
However the disadvantage of using a FAT is that its size grows with disk size. Consider the evolution
of IBM disks systems. Originally, IBM chose 12-bit block numbers (to allow for future growth), and
block sizes of 1 kbyte (each occupying 2 sectors).
1. 320 kbyte floppy disks needed 320 entries. Therefore 480 bytes required for the FAT
2. 360 kbyte floppy disks needed 360 entries. Therefore 540 bytes required for the FAT (needed 2
sectors)
3. Greater than 4096 kbytes needed more that 12-bit block numbers.
4. A 64 Mbyte hard-disk would require 128 kbytes for the FAT alone.
Therefore the FAT approach is unsuitable for very large disk systems.
14
Computer Engineering
15
Computer Engineering
2. Disk requests come into a disk driver for cylinders in the following order:
2, 8, 39, 6, 22, 14, 34, 35, 12, 5
If the arm takes 11 ms to move from one cylinder to the next, and is initially at the cylinder 20,
calculate the total time to service all the requests for:
(a) the First Come First Served algorithm
(b) the Shortest Seek First algorithm
(c) the Elevator algorithm, with the arm initially moving upwards.
16