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 .255 in fraction form
Find the GCF for 40 and 48
What is -7n-4=24 lol i hate homework
Write this definition as a true biconditional two different ways. Definition: A rhombus is a paralllogram with four congruent side.
what gas makes up close to one fourth of the air surrounding the earth
Simplify 5x-3y+2x-4y Expand 5(2x+4) Expand and simplify 4(3-2x)-4+5x Expand and simplify (x+4)(x-7) Expand and simplify (3x-3)(2x-5)
Which type of white blood cells is produced in the thymus and destroys the cell membranes of bacteria? A. B-cells B.T-cells C. microphages D. macro
How do I round to the nearest thousand if it is 32,879?
what  is the fraction of 0.02 as a mixed number and simplified
Why is human trafficking difficult to stop?