1)How many processes are created? int main() { fork(); fork(); fork(); } a) 2 b) 4 c) 6 d)8
Added by Aaron J.
Close
Step 1
The initial process is created when the program starts, so we have 1 process. Show more…
Show all steps
Your feedback will help us improve your experience
Tassha Calista and 66 other AP CS educators are ready to help you.
Ask a new question
Labs
Want to see this concept in action?
Explore this concept interactively to see how it behaves as you change inputs.
Key Concepts
Recommended Videos
In UNIX, which of the following system calls is used for inter-process communication? a) fork b) pipe c) fcntl d) exec
Sanchit J.
Select the correct alternative from the given choices. In fork( ) system call, the return value to the parent process and the child process are respectively (A) PID of child process, 1 (B) PID of child process, 0 (C) PID of child, PID of parent process (D) PID of parent process, PID of child
OPERATING SYSTEM
PROCESSES AND THREADS
Select the correct alternative from the given choices. A process executes the following segment of code for $(i=1 ; i<10 ; i++)$ fork () The number of new processes created is (A) 1024 (B) 1023 (C) 1025 (D) 1028
Recommended Textbooks
Computer Science and Information Technology
Introduction to Programming Using Python
Computer Science - An Overview
18,000,000+
Students on Numerade
Trusted by students at 8,000+ universities
Watch the video solution with this free unlock.
EMAIL
PASSWORD