Question

What is the primary purpose of the fork() system call in Unix-based operating systems?

A To allocate memory dynamically during program execution.
B To create a new process by duplicating the calling process.
C To terminate a process and release its resources.
D To open a file and obtain a file descriptor for reading or writing.
E To wait for a process to complete execution and retrieve its exit status.
Practice Next

Hey! Ask a query