diff --git a/index.html b/index.html index 3616a6e..da7e76e 100644 --- a/index.html +++ b/index.html @@ -3,16 +3,28 @@ - - + + - - - 磁盘调度算法可视化 + + + Disk Scheduling Algorithm Visualization
-

磁盘调度算法可视化

+

Disk Scheduling Algorithm Visualization

- + - +
- - - - - + + + + +
@@ -70,11 +82,11 @@
- 总寻道时间: + Total Seek Time: 0
- 当前位置: + Current Position: 0
@@ -83,9 +95,9 @@ - - - + + + @@ -111,39 +123,47 @@ onclick="resetComparisonTable()" class="reset-table-btn" > - 重置表格 + Reset Table
- 算法特点比较 + Algorithm Characteristics Comparison
-

FCFS (先来先服务)

+

FCFS (First Come First Serve)

    -
  • 按请求到达的顺序进行服务
  • -
  • 实现简单,公平
  • -
  • 性能较差,可能造成磁头频繁长距离移动
  • -
  • 不会出现饥饿现象
  • +
  • Serves requests in order of arrival
  • +
  • Simple implementation, fair
  • +
  • + Poor performance, may cause frequent + long-distance head movements +
  • +
  • No starvation
-

SSTF (最短寻道时间优先)

+

SSTF (Shortest Seek Time First)

    -
  • 优先处理距离当前磁头最近的请求
  • -
  • 平均寻道时间较短
  • -
  • 可能造成远处请求长时间等待(饥饿)
  • -
  • 局部性能优秀
  • +
  • + Prioritizes closest requests to current head + position +
  • +
  • Lower average seek time
  • +
  • May cause starvation for distant requests
  • +
  • Excellent local performance
-

SCAN (电梯算法)

+

SCAN (Elevator Algorithm)

    -
  • 按一个方向移动直到末端,再反向移动
  • -
  • 避免了饥饿现象
  • -
  • 对于双向磁盘访问较为公平
  • -
  • 性能介于 FCFS 和 SSTF 之间
  • +
  • + Moves in one direction until end, then reverses +
  • +
  • Prevents starvation
  • +
  • Fair for bidirectional disk access
  • +
  • Performance between FCFS and SSTF
算法总寻道时间执行顺序AlgorithmTotal Seek TimeExecution Order