I was googling around looking for some examples on mouse handling with the SDL library and I've found this interesting tutorials site: http://lazyfoo.net/SDL_tutorials/index.php I've found the mouse handling examples , but there were some other interesting examples. There are three good examples on concurrent programming: Multithreading Semaphores Mutex and Conditions Perhaps the one which had called my attention monst was the "Mutex and Conditions", because of the possibilities on "Discrete Event Simulation".