JDK中可扩展性和线程安全的注意事项

• Manage a pool of threads
• Easily schedule tasks for concurrent execution
• Exchange data between concurrently running threads in a thread-safe manner
• Gain fine-grained synchronization
• Benefit from better concurrent performance using concurrent data structures

 

Although the newer API helps in a number of ways, it still requires us to be
vigilant to avoid race conditions and shared mutable data.
posted @ 2012-02-24 09:58  Colin_Ye  阅读(165)  评论(0编辑  收藏  举报