java - Is that valid to use while(true){ //Processes }? -
In the program on which I am working, I have to write process like small daemon so that some small services on different threads Can meet Is it legal to do something?
  while (correct) {// processes}    Does this display stand create any problem in the program for the point? What are the options?   
 
  It is better to use a  scheduled Excel service  and program to repeat it There is a possibility that you  schedulwy fixed fixes  which pauses between the tasks.   Any infinite looping block can drain your CPU. It is not dangerous, however:  
  while (true) {// work thread. Sleep (500); }    
 
Comments
Post a Comment