[A] add pthread sample code