GateAI
File Systems

GATE CSE 2014 Set 1 · Q19

NAT1 markEasy

Time

Suppose a disk has 201 cylinders, numbered from 0 to 200. At some time the disk arm is at cylinder 100, and there is a queue of disk access requests for cylinders 30, 85, 90, 100, 105, 110, 135 and 145. If Shortest-Seek Time First (SSTF) is being used for scheduling the disk access, the request for cylinder 90 is serviced after servicing ________ number of requests.

Your answerNumerical answer

Enter a value to check

Solution

Step-by-step verified solution

Official answer: 3

File Systems

In Shortest-Seek-Time-First (SSTF) scheduling, the request closest to the current head position is served next.

  • Initial head position: 100100

  • Request queue: {30,85,90,100,105,110,135,145}\{30, 85, 90, 100, 105, 110, 135, 145\}

Step-by-step servicing:

  1. At head position 100100, there is a request at cylinder 100100 (distance =∣100−100∣=0= |100 - 100| = 0). Cylinder 100 is serviced first.

  2. Head is at 100100. Remaining requests: {30,85,90,105,110,135,145}\{30, 85, 90, 105, 110, 135, 145\}.

    • Distance to 105=5105 = 5

    • Distance to 90=1090 = 10

    • Distance to 110=10110 = 10

    • Distance to 85=1585 = 15

    • Nearest is 105105. Cylinder 105 is serviced second.

  3. Head is at 105105. Remaining requests: {30,85,90,110,135,145}\{30, 85, 90, 110, 135, 145\}.

    • Distance to 110=5110 = 5

    • Distance to 90=1590 = 15

    • Distance to 85=2085 = 20

    • Nearest is 110110. Cylinder 110 is serviced third.

  4. Head is at 110110. Remaining requests: {30,85,90,135,145}\{30, 85, 90, 135, 145\}.

    • Distance to 90=2090 = 20

    • Distance to 135=25135 = 25

    • Distance to 85=2585 = 25

    • Nearest is 9090. Cylinder 90 is serviced fourth.

Thus, cylinder 9090 is serviced after servicing 3 requests (namely cylinders 100, 105, and 110).

Try the question first, then check your work.

Think the official key or this write-up is wrong?

Report error or challenge

Examiner trap

The misconception this question tests

This File Systems previous year question is Q19 of the GATE CSE 2014 Set 1 paper. Find more GATE CSE PYQs on File Systems in Operating Systems, or browse all GATE CSE PYQs.

Free diagnostic

Where do you stand for GATE?

Take the 20-minute diagnostic: the 3 topics that cost you the most marks, and a rank range. Or sit 5 related File Systems PYQs now with no account.

One GATE CSE PYQ every morning

An official question by email at 7 AM IST, with a link to its verified solution. Unsubscribe in one click.

File Systems in GATE CSE

File Systems has 14 GATE CSE PYQs across 14 papers from 2011 to 2026. 2 of them are 1-mark NAT questions like this one, and it is the only one in GATE CSE 2014 Set 1.

How GATE tests File Systems

More from GATE CSE 2014 Set 1

Share this solution

A plain-text card for WhatsApp or Telegram study groups.

GateAI solution cardGATE CSE 2014 Set 1 · Q19 · NAT

Suppose a disk has 201 cylinders, numbered from 0 to 200. At some time the disk arm is at cylinder 100, and there is a queue of disk access requests for cylinders 30, 85, 90, 100, 105, 110, 135 and 145. If Shortest-Seek Time First (SSTF) is being used for scheduling the disk access, the request for cylinder 90 is serviced after servicing … number of requests.

Topic-wise GATE CS PYQs with verified steps

Independent practice explanation verified by the GateAI team. GATE is conducted by the IITs; question text follows the official paper.