Exercises, examples and other material relating to training module J804. This topic is presented on public courses Java Extra
, Deploying Java Applications on Linux / Unix
On a web server, several users may be accessing the same page at the same time. Java's threading model allows an application to run parallel strands servicing several requirements at the same time, though great care must be taken to ensure that the strands don't conflict.
|Articles and tips on this subject||updated|
|3040||Doing several things at the same time - Java threads|
If you have a program that you want to do several tasks at the same time, you can use threads (in Java). You create a runnable object through a constructor, start it when you want it to start and stop it when you want it to stop. And it runs in parallel with (in reality time shared with) other threads ...
|2212||Dripping taps, Java threads and the single thread model|
Have you ever lain awake at night and listened to dripping taps. "drip, drip, drip" ... until you eventually fall asleep? With one tap, it's rhythmic, but with two taps the two rhythms get intertwined, and result in an apparently patternless racket. If only one tap would wait for the other, it would ...
Examples from our training material
Some modules are available for download
as a sample of our material or under an Open Training Notes License
for free download from [here]
Topics covered in this module
Introduction to parallel processing.
Threading via an extension to the Thread class.
The runnable interface.
Synchronization - avoiding conflicts.
If you are looking for a complete course and not just a information on a single subject, visit our Listing and schedule
Well House Consultants specialise in training courses in
. We run
throughout the UK (and beyond for longer courses), and
at our training centre in Melksham, Wiltshire, England.
It's surprisingly cost effective to come on our public courses -
even if you live in a different
country or continent to us
We have a technical library of over 700 books on the subjects on which we teach.
These books are available for reference at our training centre.