資源簡介
南農業大學信息(軟件)學院 操作系統分析與設計實習 磁盤調度算法的模擬及對比
代碼片段和文件信息
using?System;
using?System.Collections.Generic;
using?System.ComponentModel;
using?System.Data;
using?System.Drawing;
using?System.Linq;
using?System.Text;
using?System.Windows.Forms;
namespace?WindowsFormsApplication9
{
????public?partial?class?Form1?:?Form
????{
????????int[]?array1?=?new?int[401];//保存400隨機產生的磁道以及磁道頭
????????int[]?array3?=?new?int[401];//保存200+100+100個隨機產生的磁道,array3[0]為空????????
????????int[]?sf1?=?new?int[401];//保存執行SSFT算法后的磁道號
????????int[]?sf2?=?new?int[401];
????????int[]?look?=?new?int[401];//保存執行LOOK算法后的磁道號
????????int[]?look2?=?new?int[401];
????????int[]?scan?=?new?int[401];//保存執行C-SCAN算法后的磁道號
????????int[]?scan1?=?new?int[401];
????????//int[]?arr?=?new?int[401];
????????int?sum?=?0?GetFirst;//sum計算磁道移動道數,fist為磁道初始位置
????????public?Form1()
????????{
????????????InitializeComponent();
????????}
????????private?void?button1_Click(object?sender?EventArgs?e)
????????{
????????????try
????????????{
????????????????if?(textBox1.
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件??????23552??2014-12-22?12:46??磁盤調度(楊興召).exe
?????文件??????13675??2014-12-22?12:23??源代碼\Form1.cs
?????文件????????842??2014-12-20?22:17??源代碼\Form2.cs
?????文件???????1384??2014-12-20?22:11??源代碼\Form3.cs
?????文件???????2578??2014-12-22?12:42??源代碼\Form4.cs
?????文件????????945??2014-12-20?22:16??源代碼\Form5.cs
?????文件????????909??2014-12-22?12:46??源代碼\Form6.cs
?????文件????????608??2014-12-20?21:56??源代碼\Program.cs
?????目錄??????????0??2014-12-22?12:48??源代碼
-----------?---------??----------?-----??----
????????????????44493????????????????????9
- 上一篇:災情巡視問題 數學建模
- 下一篇:使用MFC加解密文件
評論
共有 條評論