Code example for CyclicBarrier

Methods: await

0
	 *  
	 * @param cyclicBarrier 
	 */ 
	private static void mainAwait(CyclicBarrier cyclicBarrier) {
		try { 
			cyclicBarrier.await();
		} 
		catch (BrokenBarrierException bbe) {
			bbe.printStackTrace();
		} 
		catch (InterruptedException ie) {
			ie.printStackTrace();
		} 
	} 
	 
	/** 
	 * @param args 
	 */ 
	public static void main(String[] args) {
		CalculateHelper.runWork(); 
	}