Home > Computers > Programming > Languages > Java > Threads
http://www.javaworld.com/article/2074217/java-concurrency/java-101--understanding-java-threads--part-1--introducing-threads-and-runnables.html
Gives an introduction to threads and explores the Thread class and runnables.
http://www.javaworld.com/article/2074318/java-concurrency/java-101--understanding-java-threads--part-2--thread-synchronization.html
Explains synchronization, Java's synchronization mechanism, and two problems that arise when developers fail to use that mechanism correctly.
http://www.javaworld.com/article/2071214/java-concurrency/java-101--understanding-java-threads--part-3--thread-scheduling-and-wait-notify.html
Explains how priority relates to thread scheduling and how to use the wait/notify mechanism to coordinate the activities of multiple threads.
http://www.javaworld.com/article/2074481/java-concurrency/java-101--understanding-java-threads--part-4---thread-groups--volatility--and-threa.html
Focuses on thread groups, volatility, thread-local variables, timers, and the ThreadDeath class. Also describes how various thread concepts combine to finalize objects.
http://www.javaworld.com/article/2075692/java-concurrency/avoid-synchronization-deadlocks.html
Explains how to apply consistent rules for acquiring multiple locks simultaneously, to reduce the likelihood of synchronization deadlocks.
http://www.javaworld.com/article/2075306/java-concurrency/can-double-checked-locking-be-fixed-.html
In this article, Brian Goetz looks at some of the commonly proposed fixes and shows how each of them fails to render the DCL idiom thread-safe under the Java Memory Model.
http://www.javaworld.com/article/2075833/core-java/can-threadlocal-solve-the-double-checked-locking-problem-.html
Explains how to fix the double-checked locking idiom by using thread-local variables and takes a look at its performance.
http://astha.8m.net/CPwJ/index.html
Lab. manual by Astha Ekadiyanto.
http://www.javaworld.com/article/2074979/java-concurrency/double-checked-locking--clever--but-broken.html
Though many Java books and articles recommend double-checked locking, unfortunately, it is not guaranteed to work in Java.
http://www.vogella.de/articles/JavaConcurrency/article.html
This article describes how to do concurrent programming with Java and the Java 5.0 concurrency collection. Covers threads, the executor framework (thread pools), futures, callables, deadlocks and the fork-join framework.
http://www.javaworld.com/article/2078002/java-concurrency/java-concurrency-with-thread-gates.html
The thread gate pattern is an effective tool for managing thread concurrency, but not many developers know about it. Introduces the concept of thread gates, and then shows how to implement them in a multithreaded prime-number generator.
http://www.eguller.com/?p=443
An article covering Java thread basics.
http://www.devarticles.com/c/a/Java/Multithreading-in-Java/
The article discusses how to pull off multithreading in Java. It is excerpted from chapter 10 of the book Java Demystified, written by Jim Keogh.
http://www.javaworld.com/article/2076774/java-concurrency/programming-java-threads-in-the-real-world--part-1.html
Discusses the things you need to know to program threads in the real world. This article assumes you understand the language-level support for threads and focuses on the legion of problems that arise when you try to use these language features.
http://www.javaworld.com/article/2076797/java-concurrency/programming-java-threads-in-the-real-world--part-2.html
Discusses the perils that can arise when you approach multithreading in a naive way.
http://www.javaworld.com/article/2076815/core-java/programming-java-threads-in-the-real-world--part-3.html
Looks at how and why you might want to roll your own exclusion semaphores, and presents a lock manager that will help you safely acquire multiple semaphores.
http://www.javaworld.com/article/2076843/core-java/programming-java-threads-in-the-real-world--part-4.html
A condition variable adds to wait the ability to not wait when the condition you're waiting for has already taken place; and a counting semaphore lets you control a pool of resources without sucking up machine cycles in polling loops.
http://www.javaworld.com/article/2076356/core-java/programming-java-threads-in-the-real-world--part-5.html
Timers let you perform fixed-interval operations, such as animation refreshes.
http://www.javaworld.com/article/2076375/core-java/programming-java-threads-in-the-real-world--part-6.html
How to implement the Observer pattern (used by AWT/Swing for its event model) in a multithreaded environment.
http://www.javaworld.com/article/2076395/core-java/programming-java-threads-in-the-real-world--part-7.html
Reader/writer locks let multiple threads safely access a shared resource in an efficient way.
http://www.javaworld.com/article/2076417/core-java/programming-java-threads-in-the-real-world--part-8.html
Discusses architectural solutions to threading problems. Takes a look at threads from the perspective of an object-oriented designer, and at how to implement threads in an object-oriented environment, focusing on the implementation of asynchronous methods.
http://www.javaworld.com/article/2076437/core-java/programming-java-threads-in-the-real-world--part-9.html
Discussion of two more architectural solutions to threading problems: a synchronous dispatcher (or 'reactor') and an asynchronous dispatcher (or 'active object').
http://www.angelikalanger.com/Courses/ConcurrentJava.htm
A course covering all aspects of multi-thread programming in Java from plain synchronization over Java 5.0 concurrency utilities to memory model issues.
http://www.javaworld.com/article/2077377/java-concurrency/singletons-with-needles-and-thread.html
Presents two approaches to creating thread-safe singletons.
http://www.cs.umd.edu/~pugh/java/memoryModel/DoubleCheckedLocking.html
Details on the reasons - some very subtle - why double-checked locking cannot be relied upon to be safe. Signed by a number of experts, including Sun engineers.
http://www.ibm.com/developerworks/java/library/j-threads1/
Takes a look at the semantics and the performance penalty of Java's synchronized keyword. By Brian Goetz.
http://www.ibm.com/developerworks/java/library/j-threads2/
Explains why contended synchronization is a problem and then explores several techniques for reducing contention, and hence improving scalability.
http://www.ibm.com/developerworks/java/library/j-threads3/
Examines ThreadLocal and offers tips for exploiting its power. By Brian Goetz.
http://www.javaworld.com/article/2074990/java-concurrency/warning--threading-in-a-multiprocessor-world.html
Many authors advocate the double-checked locking idiom to access a Singleton object in an intuitively thread-safe way. Unfortunately, for counterintuitive reasons, double-checked locking doesn't work in Java.
Home > Computers > Programming > Languages > Java > Threads
Thanks to DMOZ, which built a great web directory for nearly two decades and freely shared it with the web. About us