Why TLE when using while loop with class variable?
Sorry if this is a dumb question, but when the only difference is that there is a while loop instead of a for loop with a local variable, I get TLE\n\njava\n   
Sorry if this is a dumb question, but when the only difference is that there is a while loop instead of a for loop with a local variable, I get TLE\n\n```java\n    public void zero(IntConsumer printNumber) throws InterruptedException {\n        // for(int i = 0; i < this.n; i++){     // works\n        while(this.n > 0){  // Time Limit Exceeded\n            semaphoreZero.acquire();\n            printNumber.accept(0);\n            \n            if(this.n % 2 == 0) \n                semaphoreOdd.release();\n            else\n                semaphoreEven.release();\n            \n            this.n--;\n        }\n    }\n```
[]