Skip to main content

Emmanuel Hugonnet's Library tagged thread   View Popular

08 Sep 08

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”…

blog.carbonfive.com/...multithreaded-testing - Preview

thread concurrency unit-test introduction

07 Jul 08

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.

www.javaswing.net/r-a-step-by-step-tutorial.html - Preview

swing gui thread tutorial

16 Jun 08

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.dzone.com/...java-concurrency-reentrance-lo - Preview

concurrency java thread tutorial

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.

java.dzone.com/...java-concurrency-read-write-lo - Preview

java concurrency thread tutorial

25 Apr 08

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.

blogs.sun.com/...get_netbeans_6 - Preview

jdk1.5 thread tips

24 Apr 08

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.

www.techgrasp.com/...series-simple-executor-example - Preview

jdk1.5 thread tips

26 Mar 08

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.

today.java.net/...-join-thread-pool-pattern.html - Preview

concurrency database programming jdbc jdk1.5 thread

31 Jan 08

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%.

www.javaworld.com/...jw-09-multicoreprocessing.html - Preview

concurrency thread introduction

04 Dec 07

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?

developerlife.com/tutorials - Preview

swing thread concurrency tips

28 Nov 07

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.

www.ibm.com/...j-jtp11137.html - Preview

concurrency thread java introduction

01 Nov 07

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.

www.ibm.com/...index.html - Preview

thread tools optimization performance

09 Oct 07

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.

www.javaworld.com/...jw-10-monitors.html - Preview

concurrency thread java

06 Sep 07

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.

www.ibm.com/...index.html - Preview

concurrency tutorial thread jdk1.5

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.

www.onjava.com/...threads2.html - Preview

concurrency thread tutorial reference

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.

www.onjava.com/...index1.html - Preview

tutorial jdk1.6 jdk1.5 thread reference

03 Sep 07

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.

www.javaworld.com/...jw-08-swingthreading.html - Preview

swing thread tutorial

10 Jul 07

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.

today.java.net/...ng-reentrantreadwritelock.html - Preview

concurrency java introduction thread

03 Jul 07

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().

weblogs.java.net/...the_single_thre.html - Preview

concurrency design gui thread swing

18 Jun 07

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.

www.developer.com/...3680701 - Preview

concurrency design pattern thread code

13 Apr 07

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.

www.onjava.com/...olling-threads-by-example.html - Preview

concurrency programming thread tutorial

1 - 20 of 34 Next ›
Showing 20 items per page

Highlighter, Sticky notes, Tagging, Groups and Network: integrated suite dramatically boosting research productivity. Learn more »

Join Diigo