Giter Site home page Giter Site logo

jcrecipes's Introduction

Java Concurrency Recipes

Authors

Name Weibo Id Blog Mail
李豪 @计算所的小鼠标 CarpenterLee [email protected]

Introduction

“能够驾驭多核程序的,都是稀缺人才。” ——孔子

摩尔定律失效促使人们寻找多核/众核的解决方案,当下手机平板都已四核八核,更不用说动则多块CPU数十个核的服务器了。多核使得并发/并行程序大行其道,但是如何编写正确、有效的并行程序并非易事。跟单核程序不同,多核程序牵涉到合理的任务划分,以及线程之间的同步、竞争等问题。糟糕的多核程序效率可能还不如单核程序,更可怕的是还可能出现死锁、状态错误等严重问题。

为简化并发编程,Java语言为我们提供很多工具类。本系列文章对Java并发相关的常见工具类给出介绍,让读者快速对Java并发编程建立一个简洁而深入的认识。为了不把读者吓走,本系列文章从将从现实中常遇到的问题出发,尽可能的围绕实际问题进行介绍。如果想全面了解Java并发编程,建议阅读相关书籍。

Contents

具体内容安排如下:

  1. Atomics,介绍常见原子变量。
  2. synchronized and Reentrantlock,介绍内置锁和显式锁的区别。
  3. Concurrent Collections Overview,介绍常见并发容器。
  4. ArrayBlockingQueue,结合ArrayBlockingQueue的源码讲解生产者-消费者模式的实现原理。
  5. Executors and ThreadPoolExecutor 线程池的用法和注意点。
  6. 显示锁
  7. ...

jcrecipes's People

Contributors

carpenterlee avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.