update thread depend on another thread