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. Correct Answer Incorrect Answer
    B To create a new process by duplicating the calling process. Correct Answer Incorrect Answer
    C To terminate a process and release its resources. Correct Answer Incorrect Answer
    D To read data from a file into a buffer. Correct Answer Incorrect Answer
    E To allocate memory dynamically for a process. Correct Answer Incorrect Answer

    Solution

    The fork() system call is a fundamental function in Unix-based operating systems used to create a new process. This new process, known as the child process, is a duplicate of the calling process, referred to as the parent process.

    Practice Next