据solaris系统编程记载:

使用POSIX线程时,fork与forkl完全相同。

使用Solaris线程时,fork在子进程中复制所有线程以及父进程的LWP。而forkl函数只复制子进程中的调用进程。

从Solaris10开始,fork完成之前版本的forkl的功能。而forkall来完成之前的fork的功能。这样就更直观了。


 

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>