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

Popular posts from this blog

Verilog Error: output or inout port "Q" must be connected to a structural net expression -

jasper reports - How to center align barcode using jasperreports and barcode4j -

c# - ASP.NET MVC - Attaching an entity of type 'MODELNAME' failed because another entity of the same type already has the same primary key value -