You can use CBL_THREAD_SELF to check that the operating system supports multi-threading as follows:
call 'cbl_thread_self' using thread-id on exception *> no cbl_thread api support end-call if return-code = 1008 *> running in a single threaded only rts end-if