fork and existing threads?

前端 未结 2 1185
滥情空心
滥情空心 2020-11-30 06:24

On a linux system, does the child process view the existing threads the same way as the parent process ?

int main() {

  //create thread 1

  int child_pid =         


        
2条回答
  •  盖世英雄少女心
    2020-11-30 06:41

    Threads are not inherited from a child process on a linux system using fork(). An in-depth source is here: http://linas.org/linux/threads-faq.html

提交回复
热议问题