Java并发开发包 util.concurrent

码农软件 · 软件分类 · 并发/并行处理框架 · 2019-09-03 12:14:29

软件介绍

util.concurrent 是一个 Java 语言的并发开发包,示例代码:

public class Executor
{
    private static Logger logger = Logger.getLogger(Executor.class);
    private static PooledExecutor executor = new PooledExecutor(5);
   
    static {
        executor.setMinimumPoolSize(2);
        executor.setMaximumPoolSize(10);
        executor.setKeepAliveTime(1000 * 60 * 10);
    }
   
    public static void execute(Runnable runnable) {
        try {
            executor.execute(runnable);
        }
        catch (Exception e) {
            logger.error("Exception while running task: " + e, e);
        }
    }
}

本文地址:https://www.codercto.com/soft/d/13781.html

Beginning ASP.NET 4 in C# and Vb

Beginning ASP.NET 4 in C# and Vb

Imar Spaanjaars / Wrox / 2010-3-19 / GBP 29.99

This book is for anyone who wants to learn how to build rich and interactive web sites that run on the Microsoft platform. With the knowledge you gain from this book, you create a great foundation to ......一起来看看 《Beginning ASP.NET 4 in C# and Vb》 这本书的介绍吧!

XML 在线格式化
XML 在线格式化

在线 XML 格式化压缩工具

RGB CMYK 转换工具
RGB CMYK 转换工具

RGB CMYK 互转工具

HEX HSV 转换工具
HEX HSV 转换工具

HEX HSV 互换工具