⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 main.cs

📁 大学操作系统课程的其中一个实验--作业调度的模拟
💻 CS
字号:
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using System.Data;

namespace 作业调度实验
{
	/// <summary>
	/// 作业结构体
	/// </summary>
	public struct JCB
	{
		public string name;
		public int StartTime;
		public int NeedTime;
		public int RunTime;
		public int ReferTime;
		public int AlreadyTime;
		public char NeedSource;
		public char state;
		public int FinishTime;
		public int PeriodTime;
		public float ValuePeriod;
	}

	public delegate void TimeChangedEventHandler(object sender, EventArgs e);

	public class 全局变量
	{
		int nowtime;
		public event TimeChangedEventHandler TimeNowChanged;
		public Queue WaitQueue,FinishQueue=new Queue();
		public int NowTime
		{
			get { return nowtime;
			
			}
			set
			{
				if(nowtime!=value)
				{
					nowtime=value;
					OnChanged(EventArgs.Empty);
				}
			}
		}
		public void OnChanged(EventArgs e) 
		{ 
			if (TimeNowChanged != null) 
				TimeNowChanged(this, e); 
		} 
		public 全局变量()
		{
			NowTime=0;
		}
	}

	public class App
	{
		/// <summary>
		/// 应用程序的主入口点
		/// </summary>
		[STAThread]
		static void Main() 
		{
			Application.Run(new Form1());
		}
	}
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -