Threads example POSIX

Simple example of using threads on POSIX OS.