a simple pthread example
