0
0
Operating Systemsknowledge~20 mins

C-SCAN (circular SCAN) in Operating Systems - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
C-SCAN Mastery
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
2:00remaining
How does C-SCAN differ from SCAN in disk scheduling?

Which statement best describes the difference between C-SCAN and SCAN disk scheduling algorithms?

AC-SCAN moves the disk arm in one direction only and jumps back to the start without servicing requests on the return, while SCAN moves back and forth servicing requests in both directions.
BC-SCAN moves the disk arm back and forth servicing requests in both directions, while SCAN moves in one direction only and jumps back to the start.
CBoth C-SCAN and SCAN move the disk arm randomly to service requests without any fixed direction.
DC-SCAN services requests only at the start and end of the disk, while SCAN services requests only in the middle tracks.
Attempts:
2 left
💡 Hint

Think about how the disk arm moves and whether it services requests on the return trip.

🚀 Application
intermediate
2:00remaining
Calculate total head movement using C-SCAN

Given a disk with 200 tracks (0 to 199), the disk arm is currently at track 50, and the request queue is [95, 180, 34, 119, 11]. Using C-SCAN, what is the total head movement to service all requests?

A389 tracks
B339 tracks
C299 tracks
D391 tracks
Attempts:
2 left
💡 Hint

Remember C-SCAN moves in one direction servicing requests, then jumps back to the start track without servicing requests on the return.

🔍 Analysis
advanced
2:00remaining
Analyze the advantage of C-SCAN over SCAN

Why is C-SCAN considered to provide a more uniform wait time compared to SCAN?

ABecause C-SCAN jumps back to the start without servicing requests, it treats all requests equally regardless of their position on the disk.
BBecause C-SCAN services requests only in one direction, it prevents starvation of requests at the start of the disk.
CBecause C-SCAN moves the arm back and forth, it services requests faster than SCAN.
DBecause C-SCAN services requests randomly, it balances the load better than SCAN.
Attempts:
2 left
💡 Hint

Think about how the jump back to the start affects request waiting times.

Comparison
advanced
2:00remaining
Compare C-SCAN and LOOK algorithms

Which of the following correctly compares C-SCAN and LOOK disk scheduling algorithms?

ABoth C-SCAN and LOOK move the arm to the end of the disk before reversing direction.
BC-SCAN moves the arm only as far as the last request in each direction, while LOOK always moves to the end of the disk before reversing.
CLOOK moves the arm only as far as the last request in each direction, while C-SCAN always moves to the end of the disk before jumping back.
DLOOK and C-SCAN both service requests randomly without any fixed direction.
Attempts:
2 left
💡 Hint

Consider how far the disk arm moves in each algorithm relative to the requests.

Reasoning
expert
2:00remaining
Identify the impact of C-SCAN on disk arm movement in heavy load

In a system with heavy disk request load uniformly distributed across all tracks, what is the main impact of using C-SCAN on disk arm movement compared to FCFS (First-Come, First-Served)?

AC-SCAN causes starvation of requests near the start of the disk under heavy load, increasing overall movement.
BC-SCAN reduces the total disk arm movement by servicing requests in a fixed direction, avoiding random jumps typical in FCFS.
CC-SCAN and FCFS have the same disk arm movement under heavy load because all requests must be serviced anyway.
DC-SCAN increases disk arm movement because it always moves to the end of the disk even if no requests are there, unlike FCFS which moves directly to requested tracks.
Attempts:
2 left
💡 Hint

Think about how the order of servicing requests affects arm movement.