Exemple #1
0
        public void Dispatch()
        {
            if (Ready.Count > 0)
            {
                Running       = Ready.Dequeue();
                Running.State = States.Running;

                memory.ChangeFramesState(Running, States.Running); // <<

                if (Running.tRsp == -1)
                {
                    Running.tRsp = GlobalTime - Running.tLle;
                }

                mW.tblReady.Rows.RemoveAt(0);
            }
            else
            {
                Running = new Process();
            }
        }