Document thread examples