I dont know how much this will help I used these as reference to create threads but I myself have troubles with threads

http://www.opengroup.org/onlinepubs/...ad_create.html

http://www.mit.edu:8001/people/proven/IAP_2000/