DQuestion 13 4.2 pts What does this call retur an Unix and Linux? int y x will s
ID: 3903870 • Letter: D
Question
DQuestion 13 4.2 pts What does this call retur an Unix and Linux? int y x will store the signal handler return code and y wil store the signal ID ? wal line the .oeit otle of th. lilcl Ero.es Anl y willsture it. PlD x will store the retum code of the child process and y will store its exit code y wil have the exit code of the child process and wil store its D D Question 14 4.2 pts Match the program element with the process memory section where it is located atruntime. code Choose gkobal variable Chooe ocal variable Choose] DQuestion 15 4.2 pts A multithreaded web browser loads a web page faster using blocking VO on an OS with many to-one threading model compared to a single-threaded browser TrueExplanation / Answer
13
return value of wait() on sucess it will return the process ID of terminated child , on error it will return -1,
note - here wait(&y) i.e. wait(&status) is equivalent to waitid(-1,&status,0)
the main purpose of wait is to wait for completion of child process.
int y;
int x= wait(&y);
(C) is right the y will have exit code that is -1 (return code of child processor - y is child here)
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.