示例#1
0
文件: main.cs 项目: shayramos/trab_SO
 // Use this for initialization
 void Start()
 {
     canvasMemoria.SetActive(false);
     canvasProcesso.SetActive(false);
     createProcesso.SetActive(false);
     this.escalonador = new Escalonador(new FIFOAlgoritmo());
 }
示例#2
0
        public bool executar(Escalonador esc)
        {
            Processo executando = esc.Executando;

            executando.executar(1);
            return(executando.Terminado);
        }
示例#3
0
 public bool executar(Escalonador esc)
 {
     if (this.executando != esc.Executando)
     {
         this.executando = esc.Executando;
         inicio          = esc.Tempo;
         this.executando.executar(1);
     }
     else
     {
     }
     return((esc.Tempo - this.inicio) == this.quantum);
 }
示例#4
0
 public Processo obterProximoProcesso(Escalonador esc)
 {
     return(esc.obterProximoProcessoSJF());
 }
示例#5
0
 public Processo obterProximoProcesso(Escalonador esc)
 {
     return(esc.obterProximoProcessoPrioridades());
 }