drahosp/PaPP — pull request #11 by LihO (2012-06-19 23:54:09+00:00)
Title: pthread join2 example rewritten

- using rand() simultaneously in multiple threads leads to undefined behavior !
- function rand() uses the state of process, that is common for all threads (thus seed must be set to thread-specific value)