...the process is running. The setting of these flags does not affect the data segment (see brk (2)) or stack segment pages of a process. By default, both kinds of memory spreading…