Form1.cs

(开头部分) 22KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

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;
using System.Collections;

namespace 短作业优先
{
    public partial class Form1 : Form
    {
        private int Pronum = 0;
        private int nu = 0;//用来记录当前的作业数
        private int timeSys = 0;//系统时间
        private int IOshuruziyuan = 0;
        private int CPUziyuan = 1;
        private int IOshuchuziyuan = 0;
        private int m = 0;
        private int MinIOshurushijian = 10000;
        private int MinCPUshijian = 10000;
        private int MinIOshuchushijian = 10000;
        bool[] zhuangtai;
       // PCB[] pcb;
        ArrayList pcbs =  new ArrayList();//用来存放按到达时间进行排序的进程
        ArrayList pcbs1 = new ArrayList();//用来就绪队列的排序,首先按需要CPU时间排序
        PCB pcb1 = new PCB();
        PCB pcb5 = new PCB();
        public Form1()
        {
            InitializeComponent();
            //pcb =new PCB[Pronum];
            // 下载于www.51aspx.com 
        }
       
        

        private void btnOK_Click(object sender, EventArgs e)
        {
            if (txtArrivetime.TextLength == 0 || txtCPUTime.TextLength == 0 || txtInTime.TextLength == 0 || txtOutime.TextLength == 0 || txtRelation.TextLength == 0)
            {
                MessageBox.Show("内容不能为空");
                return;
            }
            try
            {
                int.Parse(this.txtArrivetime.Text);
                int.Parse(this.txtCPUTime.Text);
                int.Parse(this.txtInTime.Text);
                int.Parse(this.txtOutime.Text);
                int.Parse(this.txtRelation.Text);
            }
            catch
            {
                MessageBox.Show("内容不是数字");
                return;
            } 

后面还有 477 行代码,解锁后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。