Basicly, I\'m making a game which to update the players position, it uses this thread:
@Override
public void run() {
while(true) {
System.out.pri
There is yet another appoach. You can use class java.util.Timer that is dedicated for implementation of scheduled tasks. It is very useful if for example you need now 2 threads that periodically perform some kind of different operations. Using Timer you can save your efforts and computer resources using only one thread