for (long i=0; i < yields; i++)
long start = System.currentTimeMillis(); while (true)
  public void run()  {    System.out.println ("Busy waiting");    int count = 0;    for (long i=0; i < yields; i++)      {        Thread.yield();	count += 5;	if (isInterrupted ())	  break;      }    synchronized (this)    {        if (interrupted ())	{	  System.out.println ("interrupted - ok");	  if (isInterrupted () || interrupted ())	    System.out.println("Error: interrupt flag is still set.");	}      else	System.out.println ("Error: Busy wait was not interrupted.");              }  }