title: Can I create a pthread inside a pthread, which is already created by the main?
body: <p>Will I run into an error if I create a pthread_create inside a pthread, which is created by the main function. If, I can then what all things I should take care of???</p>
  
  <p>Important....:I am doing a socket programming, where I have opened 5 threads each on separate ports which are listening on ports, when ever I receive a message, I want to create a thread which takes the message and writes into a file using pwrite. So, I have a few questions, please can you help me???</p>
  
  <p>If not then what is another solution of creating a thread inside a thread..?? </p>
  
  <p>Or will it give me a segmentation fault???</p>
  
  <p>or will I run into some race conditions....</p>