Foreign resources access the SICStus C API in the same way as an embedding application, that is, through a dispatch vector. As for applications, the default and backward compatible mode is to only support a single SICStus runtime. An alternative mode makes it possible for a foreign resource to be shared between several SICStus runtimes in the same process.
Unless otherwise noted, this section documents the behavior when using dynamically linked foreign resources. That is, shared objects (e.g.: .so-files) under UNIX, dynamic libraries (DLLs) under Windows.
|• MT Foreign Single:||Foreign Resources Supporting Only One SICStus Runtime|
|• MT Foreign Multiple:||Foreign Resources Supporting Multiple SICStus Runtimes|