Considerations when using multithreaded ECI V2 and ESI
V2 applications to connect to CICS®.
ECI calls using a COMMAREA
It is the responsibility
of the application to ensure that application threads do not read
or update the contents of the COMMAREA while another thread is performing
an ECI call using the same COMMAREA. If applications use the same
COMMAREA for simultaneous ECI calls, unpredictable behavior could
be experienced.
ECI calls using a channel
For ECI_SYNC calls
using a channel, the channel is locked for the duration of the ECI
call. For ECI_ASYNC calls using a channel, the channel is locked from
the start of the ECI call until the response is retrieved by a subsequent
reply solicitation call. While a channel is locked, other application
threads block if they attempt to read or update the channel or its
containers, or perform further ECI calls using the channel.