Adjusted wscript for pthread and mutexs; added skeleton for caches