Wednesday, December 24, 2008

NPTL threads issue :-

Linux NPTL thread library implements thread cancellation by throwing an (implementation-defined) exception that you are not allowed to finalize (i.e., you can catch it but you have to rethrow). The problem is that you cannot identify this exception in your C++ program. This is one the issue with NPTL threads.

Thursday, December 18, 2008

format specifiers,

This post is in regard to, printing a string with %S. The "%S" means 16 bit printing, which may lead to "core", if it tries to print 8 bit string.

Tuesday, December 16, 2008

Mutex init,

Usage of pthread mutex w/o calling pthread_mutex_init (i.e., initialisation) will behave crazy. It will lead to core under load conditions and debugging the problem would be not that straight forward. People often may forget this call and start using the mutex. To make this as a check point ,this particular post is being added.