0
0
DBMS Theoryknowledge~10 mins

Disk structure and access time in DBMS Theory - Step-by-Step Execution

Choose your learning style9 modes available
Concept Flow - Disk structure and access time
Disk Structure
Platters & Surfaces
Tracks on Surfaces
Sectors in Tracks
Blocks (Sectors grouped)
Access Time Components
Seek Time + Rotational Delay + Transfer Time
Disk data is organized in platters with tracks and sectors; accessing data involves seek time, rotational delay, and transfer time.
Execution Sample
DBMS Theory
Access disk block:
1. Move head to track (seek)
2. Wait for sector (rotation)
3. Read data (transfer)
This sequence shows the steps to access data on a disk block.
Analysis Table
StepActionDetailsTime Taken (ms)Cumulative Time (ms)
1SeekMove head to correct track88
2Rotational DelayWait for sector under head412
3TransferRead data from sector113
4EndData block accessed-13
💡 Disk block accessed after seek, rotation, and transfer times.
State Tracker
VariableStartAfter SeekAfter RotationAfter TransferFinal
Head PositionTrack 0Track 120Track 120Track 120Track 120
Sector PositionSector 0Sector 0Sector 45Sector 45Sector 45
Data ReadNoNoNoYesYes
Elapsed Time (ms)08121313
Key Insights - 3 Insights
Why does seek time take longer than rotational delay?
Seek time involves physically moving the read/write head to the correct track, which is slower than waiting for the disk to spin to the right sector (rotational delay), as shown in execution_table steps 1 and 2.
Is transfer time always the shortest part of access time?
Yes, transfer time is usually shortest because it is the time to read data once the head is positioned, as seen in execution_table step 3.
Why do we need to wait for rotational delay after seek?
After moving the head to the track, the disk must spin until the desired sector is under the head, causing rotational delay (step 2 in execution_table).
Visual Quiz - 3 Questions
Test your understanding
Look at the execution_table, what is the cumulative time after the seek step?
A4 ms
B8 ms
C12 ms
D13 ms
💡 Hint
Check the 'Cumulative Time (ms)' column at step 1 in execution_table.
At which step does the data actually get read from the disk?
AStep 1 - Seek
BStep 2 - Rotational Delay
CStep 3 - Transfer
DStep 4 - End
💡 Hint
Refer to the 'Action' and 'Details' columns in execution_table for when data is read.
If the seek time increases, which variable in variable_tracker changes accordingly?
AHead Position
BData Read
CSector Position
DElapsed Time
💡 Hint
Look at 'Head Position' and 'Elapsed Time' changes after seek in variable_tracker.
Concept Snapshot
Disk data is stored on spinning platters divided into tracks and sectors.
Accessing data involves three main times:
- Seek time: moving the head to the track
- Rotational delay: waiting for the sector to rotate under the head
- Transfer time: reading the data
Total access time = seek + rotation + transfer.
Full Transcript
Disk structure consists of platters with multiple surfaces. Each surface has concentric tracks, and each track is divided into sectors. Data is stored in these sectors grouped as blocks. To access data, the disk head moves to the correct track (seek time), waits for the disk to spin to the right sector (rotational delay), and then reads the data (transfer time). Seek time is usually the longest because it involves physical movement. Rotational delay depends on disk speed, and transfer time is the shortest. The total access time is the sum of these three components.