Add library thread

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