pthread sample

A simple pthread implementation