Operating System Notes
Operating System Notes
Operating System Notes
resources that may be required to solve a problem: CPU time, memory space,
file-storage space, I/O devices, and so on. The operating system acts as the
manager of these resources
operating system is the one program running at all times on the computer�usually
called
the kernel. (Along with the kernel, there are two other types of programs:
system programs, which are associatedwith the operating systembut are not
necessarily part of the kernel, and application programs, which include all
programs not associated with the operation of the system
A device controller is a part of a computer system that makes sense of the signals
going to, and coming from the CPU.Any device connected to the computer is connected
by a plug and socket, and the socket is connected to a device controller.It
functions as a bridge between the device and the operating system.The electrical
part of an I/O device is known as a device controller and can take the form of a
chip on personal computers.
The Device Controller receives the data from a connected device and stores it
temporarily in some special purpose registers (i.e. local buffer) inside the
controller. Then it communicates the data with a Device Driver . For each device
controller there is an equivalent device driver which is the standard interface
through which the device controller communicates with the Operating Systems.
To accomplish this goal, the bootstrap program must locate the operating-system
kernel andload it into memory.
Once the kernel is loaded and executing, it can start providing services to
the system and its users
SYSTEM BUSES
The system bus is a pathway composed of cables and connectors used to carry data
between a computer microprocessor and the main
memory. The bus provides
a communication path for the
data and control signals moving between the major components of the computer
system. The system bus works by combining the
functions of the three main
buses: namely, the data, address and
control buses. Each of the three buses has its separate characteristics and
responsibilities.
The system bus connects the CPU with the main memory and, in some systems, with the
level 2 (L2) cache. Other buses, such as the IO
buses, branch off from the
system bus to provide a
communication channel between the CPU and the other peripherals.
The system bus combines the functions of the three main buses, which are as
follows:
The control bus carries the control, timing and coordination signals to manage the
various functions across the system.
The address bus is used to specify memory locations for the data being transferred.
The data bus, which is a bidirectional path, carries the actual data between the
processor, the memory and the peripherals.
The design of the system bus varies from system to system and can be specific to a
particular computer design or may be based on an
industry standard. One
advantage of using the industry
standard is the ease of upgrading the computer using standard components such as
the memory and IO devices from independent
manufacturers.
System bus characteristics are dependent on the needs of the processor, the speed,
and the word length of the data and instructions. The size of a bus, also
known as its width, determines how much
data can be transferred at a time and indicates the number of available wires. A
32-bit bus, for example, refers to 32 parallel wires or
connectors that can simultaneously transmit 32 bits.
The design and dimensions of the system bus are based on the specific processor
technology of the motherboard. This, in effect, affects
the speed of the motherboard, with faster system buses requiring that the other
components on the system be equally fast for the best
performance.
In a Unix environment, the parent process of a daemon is often, but not always, the
init process. A daemon is usually created by a process forking a child process and
then immediately exiting, thus
causing init to adopt the child process. In addition, a daemon or the operating
system typically must perform other operations, such as dissociating the process
from any controlling terminal (tty).
Such procedures are often implemented in various convenience routines such as
daemon in Unix.
Applications can exist in two forms; either they can or they do not take input from
the user. An application that doesn't take input from a user is called a daemon. It
does tasks without having to
involve the user, which means they either do a task at a set interval, or when a
particular program that does have a user front-end calls
the daemon to do something. The user is not involved in that
call process, and does not see or need to see what the daemon does in the
background.
The CPU can load instructions only from memory, so any programs to run must
be stored there
EEPROM can be changed but cannot be changed frequently and so contains mostly
static programs. For example,
smartphones have EEPROM to store their factory-installed programs.
INSTRUCTION CYCLE:
The processing required for a single instruction is called an instruction cycle