changeset 23:ea0c97f7dfc9

harness: monitor threads running on highest priority
author shade
date Tue, 09 Jul 2013 14:42:27 +0400
parents 1b977128343e
children d65dce40f0c6
files harness/src/main/java/org/openjdk/jcstress/infra/Scheduler.java
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/harness/src/main/java/org/openjdk/jcstress/infra/Scheduler.java	Tue Jul 09 14:40:16 2013 +0400
+++ b/harness/src/main/java/org/openjdk/jcstress/infra/Scheduler.java	Tue Jul 09 14:42:27 2013 +0400
@@ -43,6 +43,7 @@
         @Override
         public Thread newThread(Runnable r) {
             Thread t = new Thread(r);
+            t.setPriority(Thread.MAX_PRIORITY);
             t.setDaemon(true);
             return t;
         }