Kadencehm61141 Kadencehm61141
  • 09-11-2020
  • Computers and Technology
contestada

If after a call to fork, we want any updates to memory by the parent process to be visible to the child process, and vice-versa, what flag should be included in the fourth argument of mmap?

Respuesta :

ogorwyne
ogorwyne ogorwyne
  • 10-11-2020

Answer:

MAP_SHARED

Explanation:

The MAP_SHARED should be included in the 4th argument of map. When we have a MAP_SHARED set, then we have it that it is preserved across a fork2 system call.

It is visible immediately in every parent, siblings or child processes. This is to say that any change that is made to this mapping is immediately seen by readers.

Answer Link

Otras preguntas

Please Help!!! Due: Monday On Ellipses - Pre Calc
When properly used, inheritance always involves a ____ relationship. specific-to-general general-to-specific specific-to-specific general-to-general
80 POINTS!!! if track changes is used in a document, what steps are critical to perform before sharing the final version of a document?
Which of the following is not a typical discounting method for manufacturers? O Seasonal sales O Volume discounts O Credit terms O All of the above O None of th
which impact did the progressive era have on child labor
I don’t understand this can someone help me
An experiment consists of rolling a die, flipping a coin, and spinning a spinner divided into 4 equal regions. The number of elements in the sample space of th
What is the function of this cell?
What’s the governments job according to the Declaration of Independence
What circumstances, other than the death or resignation of the president, may lead to the vicw president succeeding to the presidency?