A Prolog thread group is simply a Java thread group. A Prolog
thread group might contain Prolog threads and otherwise threads.
The predicate group_new/1 creates a new thread group. The
predicate group_thread/2 allows retrieving the oldest member. The
predicate current_group_flag /3 allows inspecting thread group
Thread State Group
Thread-2 WAITING main
Thread-3 RUNNABLE Group-1
Thread-4 WAITING Group-1
The predicate current_thread/1 succeeds for the Prolog threads currently known to the base knowledge base. The predicate threads/0 lists the same threads on the standard output. The Prolog threads are shown with their state and their group. Currently the predicates also list threads across different sub knowledge bases.
The following group predicates are provided:
sys_group_name: The name of the group.
sys_group_group: The group of the group.
sys_group_store: The store of the group.