Example #1
0
 public Processus(int PID, string nom, int priorite, decimal nbInstructCalc, decimal nbInstructES, int nbThread, int indiceTID)
 {
     this.PID            = PID;
     this.nom            = nom;
     this.priorite       = priorite;
     this.nbInstructCalc = nbInstructCalc;
     this.nbInstructES   = nbInstructES;
     this.nbThread       = nbThread;
     this.indiceTID      = indiceTID;
     this.initLstThread();
     this.calculateEstimatedExecutionTime();
     this.calculerTaille();
     this.etat                    = Enums.etatProcessus.Pret;
     this.prioriteInitiale        = priorite;
     this.nbInstructionsExecutees = 0;
     this.attenteBarriere         = false;
 }
Example #2
0
 // Changer l'état d'un processus
 public void setEtat(Enums.etatProcessus etat)
 {
     this.etat = etat;
 }