예제 #1
0
 public Thread(string processNom, int PID, int priorite, int TID, List <Instruction> lstInstructions)
 {
     this.processNom       = processNom;
     this.PID              = PID;
     this.priorite         = priorite;
     this.TID              = TID;
     this.lstInstructions  = lstInstructions;
     this.etat             = Enums.etatThread.Pret;
     this.prioriteInitiale = priorite;
 }
예제 #2
0
 // Changer l'état d'un thread
 public void setEtat(Enums.etatThread etat)
 {
     this.etat = etat;
 }