Availability:built-in
thread_initialization(:Goal)Run Goal when thread is started. This predicate is similar to
initialization/1,
but is intended for initialization operations of the runtime stacks,
such as setting global variables as described in
section 4.33. Goal
is run on four occasions: at the call to this predicate, after loading a
saved state, on starting a new thread and on creating a Prolog engine
through the C interface. On loading a saved state, Goal is
executed after running the
initialization/1
hooks.