Fence register is used for
Fence register is used for memory protection.
Memory protection is a way to control memory access rights on a computer, and is a part of most modern instruction set architectures and operating systems. The main purpose of memory protection is to prevent a process from accessing memory that has not been allocated to it.
Fence register:-
The fence was a predefined memory address, enabling the operating system to reside on one side and the user to stay on the other.
Fence registers are low-level OS memory management techniques, something you generally don't touch unless you're writing extremely specialized programs.
A fence or fence address is the simplest form of memory protection which can be used only for a single user operating system.
A fence is a particular address that users and their processes cannot cross. Only the OS can operate on one side of the fence and users are restricted to the other side.