Source example for multithreading in C