add multi thread sample code