简体   繁体   中英

C - Problems with calling multiple fork() calls

I have a general question about the C fork() operation.

If in a program, you have two separate methods that call fork(creating two children), would that cause any complications with the first call to fork() ?

As in, trying to process the first fork() parameters in the second one?

I am quite new to this concept in C, any explanations would be greatly appreciated!

父级通过fork()系统调用创建的每个子级都是一个单独的进程,具有从父级共享或继承的某些资源,因此,如果您尝试操作任何数据,则该子级作为单独的实体不会引起任何复杂性。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM