Changed to import of 'pthread' and changed standard to c99.
Added section for two locks.
Added pdf-images