Answer the question
In order to leave comments, you need to log in
How does the OS isolate processes from each other?
There is process 1 and process 2. Can process 1 read the address space of process 2. If so, if it starts modifying the address space of another process, will the OS just close this application?
This question arose after a superficial study of the principle of cheats in games. They change the value at the offset in the running program. It is also always said that cheats need to be run with administrator rights. Does this mean that administrator rights allow you to read, change values in the address space of another running user process?
Answer the question
In order to leave comments, you need to log in
Isolation is implemented using virtual memory. Those. those addresses to which the program refers internally are not actually addresses of real memory - these are virtual addresses. They are automatically converted by the processor into real addresses using special tables (TLB) and only after that the real memory is accessed. Each process has its own set of these tables. These tables are created by the OS when the process is created.
Thanks to the same mechanism, it is possible, incl. implement a memory swap to disk and subsequent memory recovery from disk.
Can process 1 read the address space of process 2.
if it starts modifying the address space of another process, will the OS just close that application?
Does this mean that administrator rights allow you to read, change values in the address space of another running user process?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question