Update exam1.md

added pthread function prototypes for thread creation and joining (blocking for completion)