.printScheduled();Р disk.debug();Р?}Р?public static void main(String[] args) {Р DiskSchedule fcfs = new FCFS();Р DiskSchedule sstf = new SSTF();Р DiskSchedule scan = new SCAN();Р DiskSchedule cscan = new CSCAN();Р DiskSchedule nstepscan = new NStepSCAN();Р System.out.println("FCFS调度算法:");Р test(fcfs);Р System.out.println("SSTF调度算法:");Р test(sstf);Р System.out.println("SCAN调度算法:");Р test(scan);Р System.out.println("CSCAN调度算法:");Р test(cscan);Р System.out.println("NStepSCAN调度算法:");Р test(nstepscan);Р?}Р}Р实验结果:РFCFS调度算法:Р原始访问序列:Р序号?磁道号Р1?80Р2?27Р3?104Р4?125Р5?162Р6?40Р7?88Р8?111Р9?154Р10?196Р调度后:Р开始磁道:100Р序号?磁道号?移动距离Р1?80?20Р2?27?53Р3?104?77Р4?125?21Р5?162?37Р6?40?122Р7?88?48Р8?111?23Р9?154?43Р10?196?42Р平均调度时间:Р48.6РSSTF调度算法:Р原始访问序列:Р序号?磁道号Р1?50Р2?94Р3?18Р4?124Р5?47Р6?113Р7?54Р8?101Р9?64Р10?0