Package tests.ff_tests
Class combine
java.lang.Object
tests.ff_tests.combine
Two combined workers as single one in ff_farm
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final boolean
static final long
private static final long
private static final long
static final long
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
static void
sleepNanos
(long nanoDuration) static void
ticks_wait
(long nanos)
-
Field Details
-
ntasks
public static final long ntasks- See Also:
-
worktime
public static final long worktime- See Also:
-
busy_waiting
public static final boolean busy_waiting- See Also:
-
SLEEP_PRECISION
private static final long SLEEP_PRECISION -
SPIN_YIELD_PRECISION
private static final long SPIN_YIELD_PRECISION
-
-
Constructor Details
-
combine
public combine()
-
-
Method Details
-
sleepNanos
- Throws:
InterruptedException
-
ticks_wait
public static void ticks_wait(long nanos) -
main
public static void main(String[] args) throws InterruptedException, InvocationTargetException, InstantiationException, IllegalAccessException, NoSuchMethodException
-