Examples of TwoThreadBlockingQueue


Examples of org.apache.maven.plugin.surefire.util.internal.TwoThreadBlockingQueue

    final int num = 100000;

    public void testPut()
        throws Exception
    {
        BlockingQueue twoThreadBlockingQueue = new TwoThreadBlockingQueue();

        String[] items = generate( num );
        //long start = System.currentTimeMillis();
        for ( String item : items )
        {
            twoThreadBlockingQueue.add( item );
        }
        //long elapsed = System.currentTimeMillis() - start;
        //System.out.println( "TwoThreadBlockingQueue insert " + num + " elements in  = " + elapsed );
        System.gc();
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.