public class Repetiteur extends Thread
{
  public String chaine;
  public static int nb_appel = 0;

  Repetiteur(String chaine)
    {
      this.chaine=chaine;
    }
  
  public void run()
    {
	  try{Thread.sleep(1000);} catch (InterruptedException e) {};
      for (int i=0;i<5;i++)
      {
    	  System.out.println("Je suis " + this.chaine + "(Priorite = " + this.getPriority() + ")");
    	  //setPriority(Thread.MIN_PRIORITY);
      }
      System.out.println(Repetiteur.nb_appel++);
    }
  
}
