thread demo update