• 大小: 0.01M
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2021-03-27
  • 语言: 其他
  • 标签: 其他  

资源简介


南农业大学信息(软件)学院 操作系统分析与设计实习 磁盘调度算法的模拟及对比

资源截图

代码片段和文件信息

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


评论

共有 条评论