hi all

i writing a program in which i will create a thread using pthread_create().
the create thread will be having infinite loop so it will be continously running and i am opening named pipes in the thread functiion.

from outside if i kill or send termination signal to main process then how the threads created by it handled for termination? is main process automatically terminates the threads or we need to handle them? where excatly i need to close the pipes i have opened?

can anyone suggest me nice book on process and multithread programming in linux?