Question

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

A To open a file and obtain a file descriptor.
B To create a new process by duplicating the calling process.
C To terminate a process and release its resources.
D To read data from a file into a buffer.
E To allocate memory dynamically for a process.
Practice Next

Hey! Ask a query