The below listed posts I'll specifically cover the topic of Threads. It explains the basics of threads, how to create them, concepts of synchronization, wait and notify, deadlocks, avoiding deadlocks, mutability the threads APIs from concurrent package; along with code.
Threads Basics -
DeadLocks, Synchronization & Mutability -
- Treads - Deadlocks with Synchronized
- Understanding Java Thread's - wait() & notify()
- Java Threads - Making Synchronized Mutable
- Immutable Class - without Synchronized
Threads Using Concurrent API -
- Java Threads: Executors & Thread Pools
- Java Threads: Future & Callable
- Java Concurrent API Locks - Solving DeadLocks
Miscellaneous Java Threads Notes lists some points about threads that always kept in my notepad.
All thread related posts can be found at http://www.ashishsharma.me/search/label/threads
I used Java's concurrent threads in one of my project to process 100M+ records. I used divide & conquer algorithm with threads and reduced the processing time of 100M data from 16 hours of non-thread processing to 2 hours of parallel processing. It was just awesome!
I used Java's concurrent threads in one of my project to process 100M+ records. I used divide & conquer algorithm with threads and reduced the processing time of 100M data from 16 hours of non-thread processing to 2 hours of parallel processing. It was just awesome!
No comments:
Post a Comment