Explore a custom implementation of a blocking queue in Java, complete with worker threads and the 'poison pill' termination technique. This article demonstrates fundamental concurrency concepts and serves as a learning exercise compared to using Java's built-in `BlockingQueue`.
May 5, 2014 · java · concurrency · blocking-queue · multithreading · custom-implementation · programming · tutorial
Explore two common methods for creating new threads in Java: implementing the Runnable interface or extending the Thread class and overriding its run() method.
March 12, 2014 · java · threads · concurrency · programming
Explore the concept of ThreadLocal in Java, its unique scope, global access within a thread, and common use cases in web applications and as an alternative to object pools.
February 5, 2013 · java · concurrency · multithreading · threadlocal · servlets · web-development · programming
Exploring various concurrent programming strategies in Java, including single-threaded, simple multi-threaded, thread pooling, and the Future and Callable mechanisms, along with a performance comparison.
August 13, 2012 · java · concurrency · multithreading · threads · programming