public class JavaLockPerformance
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
JavaLockPerformance.AtomicCounter |
static class |
JavaLockPerformance.LockCounter |
static class |
JavaLockPerformance.SynchronizedCounter |
Constructor and Description |
---|
JavaLockPerformance() |
Modifier and Type | Method and Description |
---|---|
static void |
main(java.lang.String... args) |
static void |
testAtomicCounter() |
static void |
testLockedCounter() |
static void |
testMadaraCounter() |
static void |
testSynchronizedCounter() |
public static void testMadaraCounter() throws java.lang.InterruptedException, java.lang.Exception
java.lang.InterruptedException
java.lang.Exception
public static void testAtomicCounter() throws java.lang.InterruptedException, java.lang.Exception
java.lang.InterruptedException
java.lang.Exception
public static void testSynchronizedCounter() throws java.lang.InterruptedException, java.lang.Exception
java.lang.InterruptedException
java.lang.Exception
public static void testLockedCounter() throws java.lang.InterruptedException, java.lang.Exception
java.lang.InterruptedException
java.lang.Exception
public static void main(java.lang.String... args) throws java.lang.InterruptedException, java.lang.Exception
java.lang.InterruptedException
java.lang.Exception