From experience, I noticed that if you try to make a loop that runs indefinitely, for example, something like:
while(true) { //do some processing }
Such a loop is likely to always be resource intensive. If you check the CPU and memory usage in this process with this loop, you will find that it will take off. This is an idea that some people call the “narrow loop”.
ankapaul Dec 21 '15 at 10:38 2015-12-21 10:38
source share