JDK7增強特性介紹
[i=s] 本帖最後由 jieforest 於 2012-7-21 11:44 編輯
I believe most of the Java Developers are aware of the latest Java release i.e Java 7. Lot of us are disappointed about quite a few important features being deferred to Java 8, but its really good to see the language evolving and lot of things happening in the Java community.
You must have seen plethora of articles on try-with-resources, strings in switch statements and other minor language enhancements as part of Project Coin.
These are just few of the enhancements added to the release. There are few other API enhancements which are good to know, for example new Files API in java.nio package, watching directory changes, Fork-Join framework.
I went through few of those topics and blogged about them and I thought it is best to aggregate them here for the benefit of the readers.
Fork-Join Framework:
In Java 5 java.util.concurrent package was added with lot of new classes for developing concurrent applications- Executor, ExecutorService, Callable, Futures among others. Fork-Join framework was added in Java 7 which builds on top of ExecutorService and adds task stealing algorithm in which the tasks queued in one thread can be picked by ideal threads and this facilitates creating multiple tasks and not worrying about tasks not getting executed.
1. A brief overview of Fork-Join framework can be found here.
2. Implementing mergesort algorithm using ForkJoin framework can be found here.
I believe most of the Java Developers are aware of the latest Java release i.e Java 7. Lot of us are disappointed about quite a few important features being deferred to Java 8, but its really good to see the language evolving and lot of things happening in the Java community.
You must have seen plethora of articles on try-with-resources, strings in switch statements and other minor language enhancements as part of Project Coin.
These are just few of the enhancements added to the release. There are few other API enhancements which are good to know, for example new Files API in java.nio package, watching directory changes, Fork-Join framework.
I went through few of those topics and blogged about them and I thought it is best to aggregate them here for the benefit of the readers.
Fork-Join Framework:
In Java 5 java.util.concurrent package was added with lot of new classes for developing concurrent applications- Executor, ExecutorService, Callable, Futures among others. Fork-Join framework was added in Java 7 which builds on top of ExecutorService and adds task stealing algorithm in which the tasks queued in one thread can be picked by ideal threads and this facilitates creating multiple tasks and not worrying about tasks not getting executed.
1. A brief overview of Fork-Join framework can be found here.
2. Implementing mergesort algorithm using ForkJoin framework can be found here.
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/301743/viewspace-736203/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Spring AOP 增強介紹Spring
- MyRocksTTL特性介紹
- 增強學習和OpeAI Gym的介紹:基礎增強學習問題的演示AI
- 【強化學習】強化學習/增強學習/再勵學習介紹強化學習
- HashSet的特性介紹
- Java高階特性增強-鎖Java
- NIO的介紹和JDK7下NIO的一個案例JDK
- Linux核心即時入侵檢測安全增強-介紹(轉)Linux
- Zookeeper 節點特性介紹
- Mycat關鍵特性介紹
- MySQL 8.0 新增特性介紹MySql
- MySQL·引擎特性·InnoDBChangeBuffer介紹MySql
- iOS 8 新特性介紹iOS
- Rails 4.0新特性介紹AI
- cassandra壓縮特性介紹
- Oracle12c功能增強 新特性之管理功能的增強Oracle
- Java 16 新特性:instanceof增強Java
- 開源speex的語音增強(去噪)演算法介紹演算法
- FastWiki(增強AI對話功能)企業級智慧客服功能介紹ASTAI
- Apache Cassandra 4.0新特性介紹Apache
- Angular 8的新特性介紹Angular
- JavaScript 6 的新特性介紹JavaScript
- TiDB 5.0.0新特性介紹TiDB
- Docker的原理及特性介紹Docker
- [譯] Chrome 71 新特性介紹Chrome
- webpack4新特性介紹Web
- MySQL 8.0新特性更新介紹MySql
- Chrome 63 Beta新特性介紹Chrome
- JDK1.5新特性介紹JDK
- Jetbrains datagrip特性介紹AI
- Jetbrains CLion特性介紹AI
- Jetbrains pycharm特性介紹AIPyCharm
- Jetbrains goland特性介紹AIGoLand
- ABAP 740新的OPEN SQL增強特性SQL
- Java8 新特性(一)- 介面增強Java
- AnalyticDB for PostgreSQL 6.0 新特性介紹SQL
- Kyma Application Connectivity 特性介紹APP
- Chrome 66 開發者工具新特性介紹Chrome