SWI-Prolog Did You Know Did you know? about nifty JoCaml style multithreading Search Documentation:
Predicate transaction/3