4.5 Multithreaded Applications

As a Java-based set of classes, Jolt supports multithreaded applications; however, various implementations of the Java language differ with respect to certain language and environment features. Jolt programmers need to be aware of the following:

  • The use of preemptive and non-preemptive threads when creating applications or applets with the Jolt Class Library.
  • The use of threads to get asynchronous behavior similar to the tpacall() function in Oracle Tuxedo.

“Threads of Control” describes the issues arising from using threads with different Java implementations and is followed by an example of the use of threads in a Jolt program.

Note:

Most Java implementations provide preemptive rather than non-preemptive threads. The difference between these two models can lead to very different performance and programming requirements.