Friday, March 27, 2009

Note about pthread_exit

Hi all,

A little note about usage of pthread_exit() while using multithreading on a Linux platform. pthread_exit() is used to kill a process for which it is called but it doesn't release the resource held by the thread immedeatly, this leads to increase in the memory footprint when a thread is killed. To complete this process use pthread_join() or pthread_detach().

Cheers!!!!!!!!!!

No comments: