Forum: C++ Jun 2nd, 2009 |
| Replies: 2 Views: 392 Go the pthread_cancel()/pthread_cleanup_pop() route. It is the easiest.
And use pthread_setcancelstate() etc. to control cancelability so that you only cancel at known points to make cleanup easier. |
Forum: C++ Apr 29th, 2009 |
| Replies: 1 Views: 378 Look at the source code for iostat and mpstat in the SYSSTAT package. All the information you need is there. |
Forum: C++ Jan 20th, 2009 |
| Replies: 3 Views: 379 The null pointer constant (NULL) is guaranteed (by the compiler) not to point to any real object. It never points to "location zero in memory". Likewise the constant NULL is guaranteed to be 0. |