Which of the following statements are true? A) A page fault is a type of fault d
ID: 3715759 • Letter: W
Question
Which of the following statements are true?
A) A page fault is a type of fault detected by computer hardware when a running program accesses a memory page that is mapped into the virtual address space, but not actually loaded into main memory. Software that handles page faults is generally a part of the operating system. When handling a page fault, the operating system generally tries to make the required page accessible at the location in physical memory or terminates the program in case of an illegal memory access.
B) A segmentation fault is a type of fault detected by computer hardware with memory protection to notify an operating system (OS) about a memory access violation. The OS will, in response, usually perform some corrective action, generally passing the fault on to the offending process or causing abnormal termination of the process.
C) A segmentation fault occurs when a program attempts to access a memory location that it is not allowed to access, or attempts to access a memory location in a way that is not allowed e.g. attempting to write to a read-only location or fetch an instruction from non-executable memory.
D) A bus error is a type of fault detected by computer hardware to notify an operating system (OS) that a process is trying to access memory that the CPU cannot physically address i.e. an invalid address for the address bus. In modern use on most architectures these are much rarer than segmentation faults, which occur primarily due to memory access violations.
E) Computer applications make a call using the application programming interface (API) to access shared resources, like the keyboard, mouse, screen, disk drive, network, and printer. These can fail in two ways: Blocked Calls or Faults. A blocked call is a request for services from the operating system that halts the computer program until results are available. Faults originate from API calls, from the operating system, and from other applications, and typically, any fault that is not handled by an application causes premature application termination. Fault-tolerant software continues to meet operational requirements in spite of the possibility of blocking and faults.
1. A, C, D
2. A, B, C, E
3. A, E
4. A, B, C, D, E
5. B, E
Explanation / Answer
A page fault is a type of fault detected by computer hardware when a running program accesses a memory page that is mapped into the virtual address space, but not actually loaded into main memory. Software that handles page faults is generally a part of the operating system. When handling a page fault, the operating system generally tries to make the required page accessible at the location in physical memory or terminates the program in case of an illegal memory access.
True
A segmentation fault is a type of fault detected by computer hardware with memory protection to notify an operating system (OS) about a memory access violation. The OS will, in response, usually perform some corrective action, generally passing the fault on to the offending process or causing abnormal termination of the process.
false
A segmentation fault occurs when a program attempts to access a memory location that it is not allowed to access, or attempts to access a memory location in a way that is not allowed e.g. attempting to write to a read-only location or fetch an instruction from non-executable memory.
False
A bus error is a type of fault detected by computer hardware to notify an operating system (OS) that a process is trying to access memory that the CPU cannot physically address i.e. an invalid address for the address bus. In modern use on most architectures these are much rarer than segmentation faults, which occur primarily due to memory access violations.
False
Computer applications make a call using the application programming interface (API) to access shared resources, like the keyboard, mouse, screen, disk drive, network, and printer. These can fail in two ways: Blocked Calls or Faults. A blocked call is a request for services from the operating system that halts the computer program until results are available. Faults originate from API calls, from the operating system, and from other applications, and typically, any fault that is not handled by an application causes premature application termination. Fault-tolerant software continues to meet operational requirements in spite of the possibility of blocking and faults.
True
Option 3:
A, E
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.