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

if n=44, what is the value of 75 -n+6
Which militant civil rights group was led by Malcolm X until he turned to nonviolence and left the group? A. National Urban League B. Congress of Racial Equa
What is the value of x in the equation 2x + 3y = 36, when y = 6?
What vector is NOT parallel to (10,6)? (-10,-6), (3,5), (5,3), (20,12)
The perimeter of a rectangle is 16 inches. The equation that represents the perimeter of the rectangle is 2l + 2w = 16, where l represents the length of the rec
What happened as a result of the so-called Intolerable Acts?
What is in the blank? The Temperature in the atmosphere approaches -90 degrees C at an altitude of about _________.
Gina wrote that 4/5 is greater than 0.75 is Gina correct explain why or why not
Frogs produce a huge number of gametes at one time - why do you think this is?
the total weight of laura's new pencil is 112 grams. one pencil rolls off the scale. Now the scale reads 105 grams. What is the total weight of 7 new pencils?
good job