update thread example