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

How might the numbers in this document worry Chinese leaders? In China's One-Child Policy: Was It a Good Idea?
7.1 added to a number equals 10.3
What is the molar mass of 12?
Brainliest, 50 points
Auden rolled two number cubes and recorded the results. What is the experimental probability that the sum of the next two numbers rolled is greater than 5? Ente
Which organizational Structure use a single directional flow of authority in a company
25% of 6430 thank you in advance
What is the purpse for stage directions
Find the value of x.
Quíz Active TIME REMAINING 1 2 3 4 5 8 53:13 Read the sentence. Which word in the sentence functions as the indirect object? Albe As part of my presentation, I