Merge pull request #35 from wagnert/master

Add synchronized() method around all wait()/notify() calls => pthreads 2...
Merge pull request #36 from wagnert/master

Add synchronized() method around all wait()/notify() calls => pthreads 2...