In Linux Operating System, when _________ is invoked, it is passed a set of flags that determine how much sharing is to take place between the parent and child tasks. 

This question was previously asked in
UGC NET Computer Science (Paper 2) 11 March 2023 Official Paper
View all UGC NET Papers >
  1. fork()
  2. clone()
  3. pthread()
  4. thread()

Answer (Detailed Solution Below)

Option 2 : clone()
Free
UGC NET Paper 1: Held on 21st August 2024 Shift 1
8.7 K Users
50 Questions 100 Marks 60 Mins

Detailed Solution

Download Solution PDF

The correct answer is clone()

Key Points

  • clone(): This system call creates a new process, similar to fork(), but it also allows the child process to share parts of its execution context with the calling process.
  • The execution context includes resources like memory space, file descriptor tables, etc.
  • The degree of sharing is controlled by a set of flags passed when invoked, which defines a spectrum between traditional processes and threads.

Additional Information

  • fork(): This is a system call used in Unix and Linux-based systems that creates a new process. The new process, called the child process, is an exact copy of the calling process, which is the parent process. It gets a new process ID (PID) and inherits most of the properties of the parent process, but they do not share the same memory space.
  • pthread_create(): This function is used to create a new thread in the context of the current process in POSIX-compliant operating systems (like Unix or Linux). Threads created by pthread_create share the same memory space but get their own stack memory.
  • There is no thread() system call in Linux.
Latest UGC NET Updates

Last updated on Jun 6, 2025

-> The UGC NET Exam Schedule 2025 for June has been released on its official website.

-> The UGC NET Application Correction Window 2025 is available from 14th May to 15th May 2025.

-> The UGC NET 2025 online application form submission closed on 12th May 2025.

-> The June 2025 Exam will be conducted from 21st June to 30th June 2025

-> The UGC-NET exam takes place for 85 subjects, to determine the eligibility for 'Junior Research Fellowship’ and ‘Assistant Professor’ posts, as well as for PhD. admissions.

-> The exam is conducted bi-annually - in June and December cycles.

-> The exam comprises two papers - Paper I and Paper II. Paper I consists of 50 questions and Paper II consists of 100 questions. 

-> The candidates who are preparing for the exam can check the UGC NET Previous Year Papers and UGC NET Test Series to boost their preparations.

More Process and Thread Questions

Get Free Access Now
Hot Links: teen patti customer care number teen patti dhani teen patti wealth teen patti noble