Linux系统中多进程/多线程编程总结

1.fork()实现创建一个子进程,pthread_create()实现创建一个线程.

2.vfork()也创建一个子进程,但父进程将挂起,直到子进程调用exec()/exit()的函数