Review : Java 7 Concurrency Cookbook
The Java 7 Concurrency Cookbook, containing over 60 examples show you how to do multithreaded programming in Java. It shows varies threading topics from beginner level to advanced level, including thread management like create, interrupt and monitor thread, using Java 5 Executor
frameworks to run or schedule threads, and the latest Java 7 fork/Join
Frameworks to distribute threads.
My favorite is chapter 3, showing 5 examples of common concurrent mechanisms or patterns – "Semaphores", "CountDownLatch", "CyclicBarrier", "Phaser" and "Exchanger", and how these mechanisms solve existing threading problem. In additional, at the end of the chapter, it surprises me by showing how to test Java concurrent code in both Eclipse and NetBean.
See following section to know what will you learn from this book.
Chapter 1: Thread Management
Hello world chapter with many useful examples to show you the basic of Thread management.
Skills are learned:
- How to create, interrupt, sleep and resume a thread.
- How to program a Daemon thread.
- How to process thread exceptions.
- How to grouping threads into a group.
Read full article from Review : Java 7 Concurrency Cookbook
No comments:
Post a Comment