Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Which of the following is true for WNOHANG, WUNTRANCED, WCONTINUED flags of the waitpid system call. Group of answer choices System call state = waitpid

Which of the following is true for WNOHANG, WUNTRANCED, WCONTINUED flags of the waitpid system call.
Group of answer choices
System call state = waitpid(-1,&status, WNOHANG) will give us the cause of the change of state of a process if we process variable state with the following Macros: WIFEXITED, WIFSIGNALED.
System call waitpid(pid,&status, WUNTRACED) ensures that one of the two processes involved is allowed to fork a child.
System call waitpid(-1, &status, WCONTINUED) returns 0(success) when the first random child continues.
If WNOHANG is used then it cannot detect when the process has been stopped in system call waitpid(-1,&status, WNOHANG)
None of the above

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions