I read an article on the memory organization of the process . Only I did not understand one thing: are the memory segments (stack, heap, date segment, etc.) allocated for each process individually? Or are there some big segments that drag on all the memory, and for the processes of these segments is allocated a piece?
1 answer
In Windows, a segment is an entirely logical element of a program, that is, Windows allocates only chunks of memory that the process sees continuously, but in fact they can be located anywhere in physical memory. And the process itself already decides where, how much and for what to select. The OS is no longer concerned, except for defense mechanisms, but this is different. There are no global segments for the whole OS.
|