To enable multiprocessing agents on the server:
DominoAsynchronizeAgents=1
Notes® is thread-safe. To write multithreaded agents, you must make sure your LSX or C/C++ code is thread-safe.
Thread-safe code means one of the following:
To design thread-safe code:
Threading problems are usually non-deterministic.
Common threading problems include:
To create locks, use the command:
LockID=CreateLock( LockName as String)
This command creates a link to the specified lock and returns the lock ID used by other lock primitives. It creates a lock if one doesn't exist.
To remove locks, use the command
DestroyLock ( LockID as Integer)
This command removes the current link to the lock specified and destroys the lock if no links remain.