forking in multithreaded program

hi all,

i am using pthreads.

What will happen if a thread does a fork?
will all the threads are duplicated for the new process or only the called thread is duplicated?
are the resources shared across the processes?

thank you