zoukankan      html  css  js  c++  java
  • 【翻译十七】java-并发之高性能对象

    High Level Concurrency Objects

    So far, this lesson has focused on the low-level APIs that have been part of the Java platform from the very beginning. These APIs are adequate for very basic tasks, but higher-level building blocks are needed for more advanced tasks. This is especially true for massively concurrent applications that fully exploit today's multiprocessor and multi-core systems.

    In this section we'll look at some of the high-level concurrency features introduced with version 5.0 of the Java platform. Most of these features are implemented in the new java.util.concurrent packages. There are also new concurrent data structures in the Java Collections Framework.

    • Lock objects support locking idioms that simplify many concurrent applications.
    • Executors define a high-level API for launching and managing threads. Executor implementations provided byjava.util.concurrent provide thread pool management suitable for large-scale applications.
    • Concurrent collections make it easier to manage large collections of data, and can greatly reduce the need for synchronization.
    • Atomic variables have features that minimize synchronization and help avoid memory consistency errors.
    • ThreadLocalRandom (in JDK 7) provides efficient generation of pseudorandom numbers from multiple threads.
  • 相关阅读:
    oracl 创建用户
    easyui 》 radio取值,checkbox取值,select取值,radio选中,checkbox选中,select选中
    NPIO 导出记录
    MVC4 学习笔记 之 URL中存在编译的空格 20%20%
    根据展示文字自适应 cell 高度,实现点击cell的伸缩扩展
    UITableView 的使用小点
    ios开发常用RGB色值
    自定义状态栏的颜色及navigation的title颜色
    IOS开发中(null)与<null>的处理
    iOS获取UUID,并使用keychain存储
  • 原文地址:https://www.cnblogs.com/accipiter/p/3284054.html
Copyright © 2011-2022 走看看