差異處
這裏顯示兩個版本的差異處。
Both sides previous revision 前次修改 下次修改 | 前次修改 | ||
java:java:java8:concurrent:blockingoperationwithcompletablefuture [2019/01/13 12:13] tony [Introduction] |
java:java:java8:concurrent:blockingoperationwithcompletablefuture [2023/06/25 09:48] (目前版本) |
||
---|---|---|---|
行 5: | 行 5: | ||
* Avoid transition task from one thread to another. It costs. [[.blockingoperationwithcompletablefuture:avoid_transition_task|link]] | * Avoid transition task from one thread to another. It costs. [[.blockingoperationwithcompletablefuture:avoid_transition_task|link]] | ||
* Avoid blocking inside CompletableFuture chains. It costs. [[.blockingoperationwithcompletablefuture:blocking_inside_cf|link]] | * Avoid blocking inside CompletableFuture chains. It costs. [[.blockingoperationwithcompletablefuture:blocking_inside_cf|link]] | ||
- | * Carefully avoid transition task from one thread to another. It costs. | + | * Carefully avoid transition task from one thread to another. It costs. [[.blockingoperationwithcompletablefuture:carefully_avoid_transition_task_of_callback|link]] |
- | * It may be useful to build chain of actions before execution. | + | * It may be useful to build chain of actions before execution. [[.blockingoperationwithcompletablefuture:build_chain_before_execution|link]] |
* Different ThreadPools show different performance. | * Different ThreadPools show different performance. | ||
===== Reference ===== | ===== Reference ===== | ||
行 12: | 行 12: | ||
* [[https://www.youtube.com/watch?v=lyJBtg6Dgwc|Asynchronous API with CompletableFuture - Performance Tips and Tricks]] YouTube | * [[https://www.youtube.com/watch?v=lyJBtg6Dgwc|Asynchronous API with CompletableFuture - Performance Tips and Tricks]] YouTube | ||
+ | ====== ====== | ||
+ | ---- | ||
+ | \\ | ||
+ | ~~DISQUS~~ |