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://codercto.com/soft/d/13781.html

Web Operations

Web Operations

John Allspaw、Jesse Robbins / O'Reilly Media / 2010-6-28 / USD 39.99

A web application involves many specialists, but it takes people in web ops to ensure that everything works together throughout an application's lifetime. It's the expertise you need when your start-u......一起来看看 《Web Operations》 这本书的介绍吧!

随机密码生成器
随机密码生成器

多种字符组合密码

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

在线 XML 格式化压缩工具

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

RGB CMYK 互转工具