w*s 发帖数: 7227 | 1 ppl are saying they are the same in linux | m**k 发帖数: 290 | 2 they are not the same thing.
In old Unix, creating a new process is much more expensive than creating a
new thread, because the child process needs to copy parent's address space.
In modern Linux, fork() uses copy on write, and thus has similar performance
to pthread_create(). Plus they use the same syscall clone(). | w*s 发帖数: 7227 | 3 for debugging purpose, if you have 2 processes with same name, will that be
harder ?
performance
【在 m**k 的大作中提到】![](/moin_static193/solenoid/img/up.png) : they are not the same thing. : In old Unix, creating a new process is much more expensive than creating a : new thread, because the child process needs to copy parent's address space. : In modern Linux, fork() uses copy on write, and thus has similar performance : to pthread_create(). Plus they use the same syscall clone().
| m**k 发帖数: 290 | 4 what kind of debugging?
normally you provide pid to the debugger.
be
【在 w*s 的大作中提到】![](/moin_static193/solenoid/img/up.png) : for debugging purpose, if you have 2 processes with same name, will that be : harder ? : : performance
|
|