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.
Pick an option to check yourself, or open the answer below.
Show answer & explanation
Correct answer: B. clone()
Explanation
Linux implements both process creation and thread creation on top of a single underlying system call, clone(), which takes an explicit set of flags (such as CLONE_VM, CLONE_FS, CLONE_FILES) that let the caller choose exactly how much of the address space, file descriptor table and filesystem context the child shares with the parent. fork() is just a convenience wrapper around clone() with none of the sharing flags set, so parent and child get fully separate copies; pthread_create() similarly wraps clone() with sharing flags set to create a thread. 'pthread()' and 'thread()' are not actual Linux system call names, so the correct answer is clone(), option (ii).More System Software and Operating System questions
- User level threads are threads that are visible to the programmer and are unknown to the kernel. The operating system kernel supports and m…
- One of the disadvantages of user-level threads compared to kernel-level threads is:
- Match List I with List II regarding operating system I/O management. List I: (a) Device controller (b) Device driver (c) Interrupt handler…
- Match List I with List II Choose the correct answer from the options given below:
- Match List I with List II Choose the correct answer from the options given below:
- Consider the following table about processes, their burst time and arrival time Now which of the process shall finish second last as per th…