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

深入理解计算机系统

深入理解计算机系统

Randal E.Bryant、David O'Hallaron / 龚奕利、雷迎春 / 中国电力出版社 / 2004-5-1 / 85.00元

从程序员的视角,看计算机系统! 本书适用于那些想要写出更快、更可靠程序的程序员。通过掌握程序是如何映射到系统上,以及程序是如何执行的,读者能够更好的理解程序的行为为什么是这样的,以及效率低下是如何造成的。粗略来看,计算机系统包括处理器和存储器硬件、编译器、操作系统和网络互连环境。而通过程序员的视角,读者可以清晰地明白学习计算机系统的内部工作原理会对他们今后作为计算机科学研究者和工程师的工作有......一起来看看 《深入理解计算机系统》 这本书的介绍吧!

在线进制转换器
在线进制转换器

各进制数互转换器

HEX CMYK 转换工具
HEX CMYK 转换工具

HEX CMYK 互转工具