Figure 12-1
This illustration describes loosley coupling connections and threads. An interactive application has the following syntax:
main program
ENABLE THREADS
ALLOCAT :ctx
Connect...
...
FREE :ctx

The application spawns a thread to execute a query to a server. Shared runtime context is passed from one thread to the next. Each thread, T1, T2...Tn shares the runtime contex:
USE :ctx
Fetch...