-> Is there any standard for when a sementation fault can occur; I mean should it occur if we access 0, or code segment or anything else ?
-> Why a system crashes, when we are trying to just "read" a memory area which is protected ?
(I can understand that system should crash if we try to "write" something.)
-> How the system knows that, we are accessing a prohibited area; will it check that before accessing any pointer ? If that is so, won't it be time consuming ?
-> Why a system crashes, when we are trying to just "read" a memory area which is protected ?
(I can understand that system should crash if we try to "write" something.)
-> How the system knows that, we are accessing a prohibited area; will it check that before accessing any pointer ? If that is so, won't it be time consuming ?
Comment