0 votes 0 votes Consider the following code segment: pid t pid; pid = fork(); if (pid == 0) { /* child process */ fork(); thread create( . . .); } fork(); a. How many unique processes are created? b. How many unique threads are created? Operating System galvin operating-system threads programming + – akash.dinkar12 asked Mar 19, 2019 • edited Jul 2, 2019 by akash.dinkar12 akash.dinkar12 973 views answer comment Share Follow See 1 comment See all 1 1 comment reply Sanandan commented Aug 29, 2020 reply Follow Share 5 child process and 1 parent. 4 threads 0 votes 0 votes Please log in or register to add a comment.
2 votes 2 votes process=6 threads created=2 Àbhíjèét Míshrà answered Jul 2, 2019 Àbhíjèét Míshrà comment Share Follow See all 0 reply Please log in or register to add a comment.
0 votes 0 votes 8 threads and 6 processes. Sandy Sharma answered Mar 19, 2019 Sandy Sharma comment Share Follow See all 0 reply Please log in or register to add a comment.
0 votes 0 votes Number of Process=6 Number of threads= 2 Refer to this Link : http://mjgeiger.github.io/OS/prev/sp17/homework/OSsp17_hw2_soln.pdf Avinash31 answered Nov 25, 2020 Avinash31 comment Share Follow See all 0 reply Please log in or register to add a comment.