目 录
前 言................................................................................................................2
2. 课程设计任务及要求..................................................................................4
2.1 设计任务 ..............................................................................................4
2.2 设计要求..............................................................................................4
3. 算法及数据结构 ..........................................................................................5
3.1算法的总体思想(流程) ..................................................................5
3.2 实现过程中用到的数据结构 ............................................................6
3.3 实现过程中用到的系统调用 ...........................................................11
4. 程序设计与实现 .........................................................................................11
4.1 最短寻道时间优先算法(SSTF)模块...........................................11
4.1.1程序流程图.................................................................................11
4.1.2 程序说明 ..................................................................................13
4.1.3 程序关键代码..........................................................................13
4.2扫描算法(SCAN)模块 .................................................................14
4.2.1 程序流程图.....................................................................................14
4.2.2 程序说明..................................................................................16
4.2.3 程序关键代码 .........................................................................16
4.3 实验结果............................................................................................17
5. 结论.............................................................................................................26
6. 参考文献 ....................................................................................................26
7. 收获、体会和建议....................................................................................27