:- use_module(library(pce_dispatch)).(can be autoloaded)
pcefor XPCE event handling. In the X11 version this call creates a thread that executes the X11 event-dispatch loop. In MS-Windows it creates a thread that executes a windows event-dispatch loop. The XPCE event-handling thread has the alias
pce. Options specifies the thread attributes as thread_create/3.