adplus-dvertising
frame-decoration

Question

Which of the following system call is preferred over dup and dup2 for replicating file descriptor?

a.

dup3

b.

fcn

c.

fcntl

d.

exec

Posted under UNIX

Answer: (c).fcntl

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. Which of the following system call is preferred over dup and dup2 for replicating file descriptor?

Similar Questions

Discover Related MCQs

Q. Which of the following system call is used for inter-process communication?

Q. We can use pipe with fork system call.

Q. The action that a signal takes on receipt of a signal is called ____

Q. The sources from where the signals can be generated are:

Q. There are _____ signals that are generated from the keyboard.

Q. Which of the following signals are generated from the hardware?

Q. ___ system call behaves in an identical manner to the kill command.

Q. Which library function uses kill to send any signal to the current process?

Q. Which system call is used to set a timer that generates the SIGALARM signal?

Q. If two users execute the same program, the memory requirements are doubled.

Q. Address space of a process is virtual.

Q. Which of the following system calls returns one or more file descriptors?

Q. The environment variables are available in _____

Q. Which of the following functions are used for obtaining and setting the value of environment variables?

Q. Which of the following action can be taken by a process upon receiving a signal?

Q. What is the default disposition of most signals?

Q. Which of the following resources are required to be managed and monitored?

Q. System time comprises ____ components.

Q. Which command is used to display all the running and active real-time processes?

Q. ____ command displays the list of all open files and processes.