updated docs/thread example