From 4cd09e31eef097c69de20f3fc617b6708eaf6e26 Mon Sep 17 00:00:00 2001 From: Jim Martens Date: Wed, 31 May 2017 15:14:42 +0200 Subject: [PATCH] Reduced waiting time for threads after actions Signed-off-by: Jim Martens --- 04/src/ClientThread.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/04/src/ClientThread.java b/04/src/ClientThread.java index 93b2856..e285e70 100644 --- a/04/src/ClientThread.java +++ b/04/src/ClientThread.java @@ -46,7 +46,7 @@ public class ClientThread extends Thread { */ private int beginTransaction() throws InterruptedException { int taid = _manager.beginTransaction(); - Thread.sleep(2000); + Thread.sleep(200); return taid; } @@ -56,7 +56,7 @@ public class ClientThread extends Thread { */ private void commit(int taid) throws InterruptedException { _manager.commit(taid); - Thread.sleep(2000); + Thread.sleep(200); } /** @@ -66,6 +66,6 @@ public class ClientThread extends Thread { private void write(int taid) throws InterruptedException { int pageID = ThreadLocalRandom.current().nextInt(_lowerPageBound, _upperPageBound + 1); _manager.write(taid, pageID, "transaction " + taid + " of client " + _id); - Thread.sleep(2000); + Thread.sleep(200); } }