ECN-4432 Multi-thread detection

Type of Change: Enhancement

Product: ACUCOBOL-GT

Module: Runtime

New Version: 10.1.0

Machines Affected: All

Known Versions Affected: All

DESCRIPTION:

The runtime has been enhanced so that it is now more thread-aware. The concept of threading was previously possible, but was implemented completely within the runtime, meaning that it was not inherently thread-safe, as it was not aware of multiple OS threads. Multiple OS threads are not currently supported, but are often present when an application uses external libraries (Java, .NET, etc...).

The runtime can now detect multiple OS threads during startup. If detected, the following message is output and the runtime stops:

Multiple OS threads detected

If the message appears, it means that your COBOL program has somehow started multiple OS threads. You need to figure out how those threads were started, and prevent them from starting.

Note: The check for multiple threads, and therefore the appearance of this message, only happens when running in debug mode, and the message will only appear once per session.