Re: how does fork() copy threads of a process in multi-processor (SMP)

2011-03-10 Thread lalit mohan tripathi
On Thu, Mar 10, 2011 at 10:25 PM, Mulyadi Santosa wrote: > Hi... > > On Thu, Mar 10, 2011 at 22:05, lalit mohan tripathi > wrote: >> I've a general question:  In Multiprocessor (Multi-Core) (SMP) >> environment how does  fork system call  (do_fork() related code) &g

how does fork() copy threads of a process in multi-processor (SMP)

2011-03-10 Thread lalit mohan tripathi
I've a general question:  In Multiprocessor (Multi-Core) (SMP) environment how does  fork system call  (do_fork() related code) maintain the synchronization in case the threads of a process are running on different processors?  E.g. it can happen that the fork() is called by cpu-0 thread and other