corrected (added Thread.sleep, removed setPriority, ...)