Simple threading example for Linux