Friday 14 December 2012

Linux Operating Systems

Linux Operating Systems Details

Linux are central to operating systems, as they provide an efficient way for the operating system to interact with and react to its environment. The alternative — having the operating system "watch" the various sources of input for events (polling) that require action — can be found in older systems with very small stacks (50 or 60 bytes) but are unusual in modern systems with large stacks. Interrupt-based programming is directly supported by most modern CPUs. Interrupts provide a computer with a way of automatically saving local register contexts, and running specific code in response to events. Even very basic computers support hardware interrupts, and allow the programmer to specify code which may be run when that event takes place.

When an interrupt is received, the computer's hardware automatically suspends whatever program is currently running, saves its status, and runs computer code previously associated with the interrupt; this is analogous to placing a bookmark in a book in response to a phone call. In modern operating systems, interrupts are handled by the operating system's kernel. Interrupts may come from either the computer's hardware or from the running program.

When a hardware device triggers an interrupt, the operating system's kernel decides how to deal with this event, generally by running some processing code. The amount of code being run depends on the priority of the interrupt (for example: a person usually responds to a smoke detector alarm before answering the phone). The processing of hardware interrupts is a task that is usually delegated to software called device driver, which may be either part of the operating system's kernel, part of another program, or both. Device drivers may then relay information to a running program by various means.

A program may also trigger an interrupt to the operating system. If a program wishes to access hardware for example, it may interrupt the operating system's kernel, which causes control to be passed back to the kernel. The kernel will then process the request. If a program wishes additional resources (or wishes to shed resources) such as memory, it will trigger an interrupt to get the kernel's attention.
Linux Operating Systems
 Linux Operating Systems
Linux Operating Systems
 Linux Operating Systems
 Linux Operating Systems
Linux Operating Systems
Linux Operating Systems
 Linux Operating Systems
Linux Operating Systems
Linux Operating Systems
 Linux Operating Systems
Linux Operating Systems
Linux Operating Systems
 Linux Operating Systems
 Linux Operating Systems
Linux Operating Systems
 Linux Operating Systems
 Linux Operating Systems
 Linux Operating Systems
 Linux Operating Systems
Linux Operating Systems
                    

No comments:

Post a Comment