liangyepianzhou opened a new issue, #5907:
URL: https://github.com/apache/inlong/issues/5907

   ### Description
   
   Java threads are implemented using kernel threads, and the sleep and wake-up 
(state switching) of threads need to be performed by the operating system, 
which is an extremely time-consuming and labor-intensive operation. In the 
scenario where the thread sleeps or runs for a long time, its impact on 
performance is not obvious, because the switching of thread state is not 
frequent. However, if the thread sleep and running time are very short (such as 
milliseconds/second), the system will frequently switch the thread state, 
resulting in serious performance loss and enlargement with the increase of the 
number of loops.
   
   We hope to replace the while-sleep with ScheduledExecutorService to execute 
the scheduled task in AbstractDaemonService::loopProcess.
   
   ### InLong Component
   
   InLong TubeMQ
   
   ### Are you willing to submit PR?
   
   - [X] Yes, I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [X] I agree to follow this project's [Code of 
Conduct](https://www.apache.org/foundation/policies/conduct)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to