i am using a thread to update a moving ticker on the screen like the bootom of a news channel.
it's something like this :
while(true)
{
Thread.sleep(10);
x++;
repaint();
}
The trouble is that it is having high CPU usage about 25% due to which my other applications are having trouble.
What should i do to reduce the CPU usage?
Edit : please close it. it is being discussed in the Swings sub-forum. Thanks