官术网_书友最值得收藏!

Chapter 2. Managing Lots of Threads – Executors

When you implement a simple concurrent application, you create and execute a thread per concurrent task. This approach can have some important issues. Since Java version 5, the Java concurrency API includes the executor framework to improve the performance of concurrent applications with a lot of concurrent tasks. In this chapter, we will cover the following:

  • An introduction to executors
  • The first example – the k-nearest neighbors algorithm
  • The second example – concurrency in a client/server environment
主站蜘蛛池模板: 大田县| 新乡市| 乐清市| 枣强县| 融水| 永胜县| 沅江市| 青岛市| 永善县| 兴和县| 大理市| 鄂尔多斯市| 墨江| 璧山县| 大余县| 九寨沟县| 临安市| 巴里| 阿拉尔市| 额尔古纳市| 连南| 介休市| 海兴县| 澜沧| 哈尔滨市| 屯留县| 开封市| 上蔡县| 南投县| 融水| 永平县| 乾安县| 贵溪市| 吕梁市| 阿鲁科尔沁旗| 礼泉县| 鲁甸县| 义马市| 鹤岗市| 秦皇岛市| 阿尔山市|