Consider the following statements, which one of the following is/are TRUE
2,3,4 this options are ans as threads doesn't share open file descriptor locks.
Refer this :
https://man7.org/linux/man-pages/man2/fork.2.html
the child inherits copies of the parent's set of open file descriptors. each file descriptor in the child refers to the same open file description as the corresponding file descriptor in the parent. this means that the two file descriptors share open file status flags, file offset, and signal-driven i/o attributes.
So Option 1,2,4 is correct.
64.3k questions
77.9k answers
244k comments
80.0k users