Java并发库-ThreadStack

package org.walkerljl.practice.concurrent; /** * ThreadStackTest.java * * @author ShadowShell */public class ThreadStackTest { ...

In blog, Jan 01, 2014

All Stories

Java并发库-ThreadStack

package org.walkerljl.practice.concurrent; /** * ThreadStackTest.java * * @author ShadowShell */public class ThreadStackTest { public static void main(String[] args) { ...

In blog, Jan 01, 2014

Java并发库-Join

package org.walkerljl.practice.concurrent; import java.util.Random; /** * ThreadJoinTest.java * * @author lijunlin */public class ThreadJoinTest { private static final in...

In blog, Jan 01, 2014

Java并发库-UncaughtExceptionHandler

package org.walkerljl.practice.concurrent; import java.lang.Thread.UncaughtExceptionHandler; /** * 线程异常终止处理器 * * @author lijunlin */public class ThreadExceptionHandlerTest { ...

In blog, Jan 01, 2014

Java并发库-Semaphore

package org.walkerljl.practice.concurrent; import java.util.concurrent.ExecutorService;import java.util.concurrent.Executors;import java.util.concurrent.Semaphore; /** * Semapho...

In blog, Jan 01, 2014

Java并发库-CyclicBarrier

package org.walkerljl.practice.concurrent; import java.io.IOException;import java.util.Random;import java.util.concurrent.BrokenBarrierException;import java.util.concurrent.CyclicB...

In blog, Jan 01, 2014

Java并发库-CountDownLatch

package org.walkerljl.practice.concurrent; import java.util.concurrent.CountDownLatch; /** * CountDownLatch(线程同步辅助类) * * @author lijunlin */public class CountDownLatchTest { ...

In blog, Jan 01, 2014

Java并发库-CompletionService

package org.walkerljl.practice.asyncparallel; import org.walkerljl.commons.datetime.DateUtils;import org.walkerljl.practice.Task; import java.util.concurrent.*; /** * 使用Compl...

In blog, Jan 01, 2014

Java并发库-AtomicStampedReference

package org.walkerljl.practice.concurrent; import java.util.Random;import java.util.concurrent.CountDownLatch;import java.util.concurrent.atomic.AtomicStampedReference; /** * 同一...

In blog, Jan 01, 2014

Java并发库-AtomicReferenceABA

package org.walkerljl.practice.concurrent; import java.util.Random;import java.util.concurrent.CountDownLatch;import java.util.concurrent.atomic.AtomicReference; /** * AtomicRef...

In blog, Jan 01, 2014

Featured