Added sample pthread