Java dispatch thread doesn't yield on active requests

Last reviewed: 2/09/2003

PRB Article ID: P020301

The information in this article applies to:

  • SpeechKit 3, 4

Symptoms

The Java dispatch thread that handles dispatching requests through the JNI consumes CPU during active requests. The thread sleeps when idle.

Cause

In SpeechKit 3, the Win32 dispatch flag always indicated a run state during active requests. In SpeechKit 4, the Java dispatch thread did not rely on a Win32 flag and used Java thread yield instead.

Status

The Java dispatch thread in both versions now sleeps properly during active and inactive states.

Fixed and SpeechKit 3 speechkit.jar available for download and deployment for licensed SpeechKit 3 developers.

Fixed in SpeechKit 4 build 4.0.68.0.

Component Formats Impacted

Java