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; }
// Changer l'état d'un processus public void setEtat(Enums.etatProcessus etat) { this.etat = etat; }