title: Why do we write -D_REENTRANT while compiling C code using threads
body: <p>We write this statement when we are compiling a C program that has threads implemented in them.
  I could not understand why we use -D_REENTRANT here.
  e.g <code>gcc t1.c -lpthread -D_REENTRANT</code></p>