Question 1
EasyWhat is seek time?
- A.
The time to transfer data
Popular companies
Prepare company by company
Hiring pattern, syllabus, past questions and mocks for each company.
All companiesPractice by subject
Operating Systems
What is seek time?
The time to transfer data
The time for the sector to rotate under the head
The time to boot the OS
The time to move the disk arm to the required track
Answer: D
Seek time is usually the largest part of a disk access, which is why disk scheduling tries to reduce head movement.
What is rotational latency?
The time to spin up the disk
The time waiting for the required sector to rotate under the read/write head
The time to transfer a block to memory
The time to move the arm
Answer: B
Once the head is on the right track, it waits for the sector to come round.
What is a property of FCFS disk scheduling?
It is fair but can lead to a lot of head movement
It services requests in order of track number
It always minimises head movement
It can starve some requests
Answer: A
Requests are served in arrival order, so the head may swing back and forth across the disk.
How does SSTF choose the next disk request?
It picks a random request
It picks the oldest request
It picks the pending request closest to the current head position
It moves the head to one end first
Answer: C
Shortest Seek Time First minimises each individual movement.
Which disk-scheduling algorithm is also called the elevator algorithm?
FCFS
SCAN
C-LOOK
SSTF
Answer: B
SCAN moves the head in one direction serving requests until it reaches the end, then reverses — like a lift.
Which disk-scheduling algorithm can starve requests far from the head?
C-SCAN
SCAN
SSTF
FCFS
Answer: C
If new requests keep arriving near the head, distant requests may wait indefinitely.
How does C-SCAN differ from SCAN?
It always picks the closest request
After reaching one end it returns to the start without serving requests on the way back
It doesn't move the head
It serves requests in both directions
Answer: B
Treating the cylinders as a circular list gives more uniform waiting times.
What is the main aim of disk scheduling?
To delete old files
To make the disk larger
To cool the disk
To reduce the total movement of the disk head and so the time spent seeking
Answer: D
Seek time dominates access time on hard disks, so ordering requests well saves time.
On a hard disk, what is a cylinder?
The motor that spins the disk
The set of tracks at the same arm position on all the platters
The disk's outer case
A single sector
Answer: B
The heads move together, so all tracks at one arm position can be read without seeking.
On a hard disk, what is a track?
The path of the network cable
A circular ring of data on a platter surface
A file's name
A type of RAM
Answer: B
Each surface has many concentric tracks.