Simple examples using basic pthread calls