Just my thread:
?- thread_self(Me). Me = main.
Another thread without alias:
?- thread_create((thread_self(Me),format("~q~n",[Me])),Id,[detached(true)]). Id = <thread>(3,0x1ac3d20). <thread>(3,0x1ac3d20)
Another thread with alias:
?- uuid(UUID),thread_create((thread_self(Me),format("~q~n",[Me])),Id,[detached(true),alias(UUID)]). UUID = Id, Id = '21d3a1e2-ae4f-11eb-a53c-001999a7dee3'. '21d3a1e2-ae4f-11eb-a53c-001999a7dee3'