Add thread names to examples