๐Ÿ“ข Too many exams? Donโ€™t know which one suits you best? Book Your Free Expert ๐Ÿ‘‰ call Now!

  • google app store apple app store
  • โœ–

      Question

      What is the primary purpose of the fork() system call in

      Unix-based operating systems?
      A To allocate memory dynamically during program execution. 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 open a file and obtain a file descriptor for reading or writing. Correct Answer Incorrect Answer
      E To wait for a process to complete execution and retrieve its exit status. Correct Answer Incorrect Answer

      Solution

      The fork() system call in Unix-based operating systems is used to create a new process by duplicating the calling process. This new process is called the child process, and the original process is known as the parent process.

      Practice Next
      ask-question