Previous: , Up: Multiple SICStus Runtimes   [Contents][Index]

8.4 Multiple Runtimes and Threads

Perhaps the primary reason to use more than one SICStus runtime in a process is to have each runtime running in a separate thread. To this end, a few mutual exclusion primitives are available. See Operating System Services for details on mutual exclusion locks.

Please note: the SICStus runtime is not thread safe in general. See Calling Prolog Asynchronously for ways to safely interact with a running SICStus from arbitrary threads.

Send feedback on this subject.