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

What is the tone of an Indians fathers plea?
what is the most unreactive group
f(x)=x^2-x-1 , average rate of change of f over interval -1 greater than or equal to x less than or equal to 1
How do I simplify 8x+10x-4+2x+20
Explain how we use a spectrometer to help us determine what stars and planets are made of?
Select kijiye 1 dil ❤Dekhte h aapke dil me hmare liye kya h? 1 2 3 4 5 6 7 8 9 10Reply pls
The mass murder of a group of people on the basis of their race, beliefs, or culture is known as...?
during his first pet visit, pedros puppy weighed 6 and 1 eighth pounds.on his second visit, he weighed 9 and 1 sixteenth pounds.how much weight did he gain betw
Nosotros __________ en la playa
what is calcite luster?