Category Archives: Programming

Python-Debugging

  ** Steps to debug a python script * apt-get install gdb python2.7-dbg * We need a gdb  compiled with –with-python wget http://ftp.gnu.org/gnu/gdb/gdb-7.6.2.tar.gz ./configure –with-python=/usr/bin make make install It will install in /usr/local/bin/ * On Ubuntu we have to install python-dbg, Further for … Continue reading

Posted in Programming | Leave a comment

Dirrefent ways to run system command in C++ programme

Before proceding a short intro of forking (o) fork() The fork() system call will spawn a new child process which is an identical process to the parent except that has a new system process ID. The process is copied in … Continue reading

Posted in Programming | Tagged | Leave a comment

make a choice pthread_join or pthread_detach

Depends if you want to get some sort of status code or return value from the thread. If the thread doesn’t need to signal any errors (or it signals errors in some other way than the return code), then using … Continue reading

Posted in Programming | Tagged | Leave a comment