Emmanuel Hugonnet's Library tagged → View Popular
Multithreaded Testing at Carbon Five Community
Every now and then you’ll work on something that needs to handle requests from multiple concurrent threads in a special way. I say “special way” because in a web application, everything needs to handle being executed concurrently and there are a slew of techniques used to handle this (prototypes, thread locals, stateless services, etc). Here’s an example of what I mean by “special”…
Using SwingWorker - A Step by Step tutorial » Java Swing
SwingWorker is one of the most handiest utility classes provided in Swing. Most of the interviews on Swing have a question or two on this class. Let’s make sure you know all about it’s need and usage. Step by Step.
Java Concurrency: Reentrance Lockout | Javalobby
Reentrance lockout may occur if a thread reenters a Lock, ReadWriteLock or some other synchronizer that is not reentrant. Reentrant means that a thread that already holds a lock can retake it. Java's synchronized blocks are reentrant. Therefore the following code will work without problems:
Java Concurrency: Read / Write Locks
A read / write lock is more sophisticated lock than the Lock implementations shown in the text Locks in Java. Imagine you have an application that reads and writes some resource, but writing it is not done as much as reading it is. Two threads reading the same resource does not cause problems for each other, so multiple threads that want to read the resource are granted access at the same time, overlapping. But, if a single thread wants to write to the resource, no other reads nor writes must be in progress at the same time. To solve this problem of allowing multiple readers but only one writer, you will need a read / write lock.
Using Callable to Return Results From Runnables : Core Java Technologies Tech Tips
Thanks to the Callable interface introduced in J2SE 5.0, instead of having a run() method, the Callable interface offers a call() method, which can return an Object or, more specifically, any type that is introduced in the genericized form.
Java Concurrency Series - Simple Executor example | techgrasp
With Java 1.5 we have a new way of managing threads or threaded tasks. We no longer need to call start() and join()on our Thread object. The new concurrent package provides us with an elegant Executor class to manage our threads.
Query by Slice, Parallel Execute, and Join: A Thread Pool Pattern in Java
This article will first show you how to effectively utilize ROWNUM at the database level itself, so that we implement "true pagination": querying data in slices with our paged data sent in batches to available threads in a thread pool.
Multicore processing for client-side Java applications - Java World
In this article Kirill Grouchnikov shows you how to fine-tune a core JDK array-sorting algorithm for improved processing speed of as much as 35%.
SwingWorker details - canceling background tasks in flight
If you use the SwingWorker class to run background tasks that don’t freeze up the EDT (Event Dispatch Thread) in your Swing apps, this may be of interest. What happens when you cancel a long running operation that’s running the background?
Learn how to exploit fine-grained parallelism using the fork-join framework coming in Java 7
One of the additions to Java 7 java.util.concurrent package is a framework for fork-join style parallel decomposition. The fork-join abstraction provides a natural mechanism for decomposing many algorithms to effectively exploit hardware parallelism.
Java diagnostics, IBM style, Part 3: Diagnosing synchronization and locking problems with the Lock Analyzer for Java
This article introduces Lock Analyzer for Java, explains the architecture on which it is built, and provides some thoughts about the tool's future direction. It provides real-time lock monitoring on a running Java application.
Better monitors for Java - Java World
In this article, I describe a Java library that supports Hoare's monitor concept. I will show how OO improves on Hoare's concept by making assertions executable objects, reducing redundant coding and automating assertions checking during execution.
Java theory and practice: More flexible, scalable locking in JDK 5.0
JDK 5.0 offers developers some powerful new choices for developing high-performance concurrent applications. Concurrency expert Brian Goetz returns from his summer hiatus to supply the answer.
ONJava.com -- Advanced Synchronization in Java Threads, Part 2
Deadlock between threads competing for the same set of locks is the hardest problem to solve in any threaded program. Wetry to offer a good understanding of deadlock and some guidelines on how to prevent it.
ONJava.com -- Advanced Synchronization in Java Threads, Part 1
In this chapter, we look at some of the more advanced issues related to data synchronization--specifically, timing issues related to data synchronization.
Swing threading and the event-dispatch thread - Java World
In this article, you'll learn about the evolution of Swing GUI programming, with particular attention to Swing threading. I'll show you how to work around it, either with the help of the SwingWorker class or without it.
Extending the <code>ReentrantReadWriteLock</code>
This article will not cover the java.util.concurrent package; nor will it give you a tutorial on how to use it. It will, however, talk about a specific mechanism, and suggest a way to extend this mechanism and add more power to it.
The Single Thread Rule in Swing
Once a Swing component has been realized, all code that might affect or depend on the state of that component should be executed in the event-dispatching thread : you should stop messing with components in the thread after calling pack () or setVisible().
Threads Versus The Singleton Pattern
In this article, I will demonstrate the risk of not accounting for Threads when using a singleton pattern and show how simple it is to address.
ONJava.com -- Controlling Threads by Example
A thread is an execution path in the program that has its own local variables, program counter, and lifetime. This article will take a nontrivial example with threads and refactor the code to include a mechanism to stop, monitor, pause, and resume.
Selected Tags
Related Tags
Sponsored Links
Top Contributors
Groups interested in thread
-
Broken threads in Google Mail Beta
Broken conversations/thread...
Items: 7 | Visits: 71
Created by: Graham Perrin
-
etiquette on the Internet
Some highlights relating to...
Items: 20 | Visits: 51
Created by: Graham Perrin
-
10th Grade Commerce Voice Thread
List of 10th Grade Commerce...
Items: 20 | Visits: 94
Created by: dean groom
Highlighter, Sticky notes, Tagging, Groups and Network: integrated suite dramatically boosting research productivity. Learn more »
Join Diigo
