commit 7aa571f5db97d6cd61a28571724204ee8c49e6ab parent 7e024f159c389ea4dc4cddaa90d1e238ea25bd21 Author: zerous Naveen Narayanan <zerous@nocebo.space> Date: Mon, 25 Nov 2019 16:55:28 +0100 Sleep on thread as it is less taxing Diffstat:
M | servertask.java | | | 6 | ++++++ |
1 file changed, 6 insertions(+), 0 deletions(-)
diff --git a/servertask.java b/servertask.java @@ -82,6 +82,12 @@ public class servertask implements Runnable { System.out.println("dbg chars: " + chars[0][0] + chars[1][0] + chars[2][0]); break; } + try { + Thread.yield(); + Thread.sleep(2000); + } catch (InterruptedException ex) { + System.out.println("InterruptedException " + ex); + } } }