update thread and timer

Signed-off-by: Fuang.Cao <cavan.cfa@gmail.com>