prepare pthread launch