Multi-Threading Considerations (Magic xpa 4.x)
The following are points to consider when working with multi-threading:
-
Resident tables are shared for all contexts, thereby improving the performance of each context by eliminating the need to load and maintain separate copies of resident tables for each context string.
-
The enterprise server allows a request to close the current project and open another project only if there are no other requests.
-
The user can add or remove user rights to each thread through the use of the Runtime (RT) functions. Runtime functions are described in the Runtime Functions section.
-
Each enterprise server uses one TCP/IP port.
-
A separate copy of the Main Program is available for each Runtime context.
-
Each thread acts as a separate process, independent of the other threads. However, locking between threads is shared in memory. Each enterprise server process uses one terminal number.