-APUE-:
fig11.2, printing thread IDs.
(note: need -pthread to compile.)