public void run ()
    {
        while(PerformanceTest.go == 0)
        {
            
        }
        
        double step = Math.PI / 10000;
        
        for (double angle = 0;true;angle +=step)
        {
            if(angle>Math.PI)
            {
                angle = 0;
            }
            
            double cos = Math.cos(angle);
            double sin = Math.sin(angle);
            double res = cos+sin;
            
            if(res < 2)
                iterCount++;
            if (iterCount>Long.MAX_VALUE/2)
                System.out.println("WARNING!");
            
             if(PerformanceTest.stop == 1)
        {
             break;
        }
             /*
            if(Thread.currentThread().isInterrupted())
            {
                break;
            }
            * */
                
        }
    }