Operating system
What is an Operating system?
Operating system is a system software which acts as an Interface between the user and computer.
This allocates and controls the use of all system resources like the processor, the main memory and all I/O devices. It also allows multitasking.
What is booting?
Booting is the process of loading the operating system from secondary memory to RAM.
Who carry out the process of booting?
Boot strap loader which is the set of instructions present in ROM as part of BIOS carry out the task of booting.
When user programs runs how the OS get control back to do its work?
It is achieved with the help of Interrupts
This is any type of h/w event such as Keyboard press, a hard disk reading/writing, receipt of Ethernet packet etc.
Example:
When a h/w event such as a key press from the keyboard, the following series of events happen.
When a user program needs to make a system call to the operating system, such as I/O or to request more memory, it may issue a special instruction called a s/w interrupt to cause the CPU to switch processing to the kernel. Ex: If your program has printing statement, reading statement etc.
This is issued by the CPU itself when it detects that something is wrong or needs special attention. Example: When a user program executes an illegal instruction like divide by zero
Most of the OS kernel code is termed as this, meaning that additional interrupts may be received even while processing a previous interrupt. Interrupts can be turned on or off by issuing special instructions. Interrupts are turned off in critical sections of the kernel when an interrupt causes memory corruption in the kernel. When the interrupts are turned off, they are queued by the hardware and will be issued when interrupts are turned on again.
If different functional units of a computer are connected in a organized way then only the computer will carry out the task. There are different ways in connecting. When a word of data is transferred between units, all its bits are transferred in parallel, so this requires many number of wires. A collection of lines that connects several devices is called a bus.
Fundamental Computer Architectures << Previous
Next>>Bus Structure Continued
Support us generously: contact@lessons2all.com
Our aim is to provide information to the knowledge seekers.