Threads terminating when a signal is generated

hi all,

i had created 3 threads using pthreads. Each thread does a different job. Now the main problem is when one thread generates a signal (for example SIGFPE, SIGINT) then the process terminates and all other threads do terminate eventually.

I want to keep other threads running i.e, i want to keep the process.
Is there a way only to terminate only the thread that generated the signal?

thank you