Java - long queue of tasks can interfere with user input?

55 Views Asked by At

I am writing this Queue object which performs tasks one after the other. But if I have a long list of tasks to perform, this could interfere with all bunch of stuff, am I right? Like reactions to user input for example. I think I should wait a millisecond before performing the next task, so the system can make other calculations if needed? So, how do I do this in Java? In Javascript I would use setInterval, but I'm pretty new to Java.

Thanks for reading!

0

There are 0 best solutions below