Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
Signal (IPC)
(section)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
==Relationship with hardware exceptions== A [[Process (computing)|process]]'s execution may result in the generation of a hardware [[Exception handling|exception]], for instance, if the process attempts to divide by zero or incurs a [[page fault]]. In [[Unix-like]] operating systems, this event automatically changes the processor [[Context (computing)|context]] to start executing a [[Kernel (operating system)|kernel]] [[Exception handling|exception handler]]. In case of some exceptions, such as a [[page fault]], the kernel has sufficient information to fully handle the event itself and resume the process's execution. Other exceptions, however, the kernel cannot process intelligently and it must instead defer the exception handling operation to the faulting process. This deferral is achieved via the signal mechanism, wherein the kernel sends to the process a signal corresponding to the current exception. For example, if a process attempted integer divide by zero on an [[x86]] [[Central processing unit|CPU]], a ''divide error'' exception would be generated and cause the kernel to send the [[SIGFPE]] signal to the process. Similarly, if the process attempted to access a memory address outside of its [[virtual address space]], the kernel would notify the process of this violation via a [[segmentation fault|SIGSEGV]] ([[segmentation fault|segmentation violation]] signal). The exact mapping between signal names and exceptions is obviously dependent upon the CPU, since exception types differ between architectures.
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)