Operating System Lect2
Operating System Lect2
Lecture #2
Introduction to OS
What is basic Computer Organization
The basic organization of a computer system is the processing unit, memory
unit, and input-output devices. The processing unit controls all the functions
of the computer system. It is the brain of the computer e.g. CPU. The
memory unit consists of two units. One is an arithmetic unit and the other is
a logic unit. Input devices are those devices through which end-users can
send messages to computers e.g. keyboard, mouse, etc. Output devices are
those devices through which end-users get output from computers e.g.
monitors.
Computer System Organization
Computer System Organization
• The I/O devices and the CPU both execute concurrently. Some of the processes are
scheduled for the CPU and at the same time, some are undergoing input/output operations.
• There are multiple device controllers, each in charge of a particular device such as
keyboard, mouse, printer etc.
• There is buffer available for each of the devices. The input and output data can be stored
in these buffers.
• The data is moved from memory to the respective device buffers by the CPU for I/O
operations and then this data is moved back from the buffers to memory.
• The device controllers use an interrupt to inform the CPU that I/O operation is completed.
Bootstrap Program
• A bootstrap program is the first code that is executed when the computer system is
started. The entire operating system depends on the bootstrap program to work
correctly as it loads the operating system.
• The bootstrap program is a part of ROM which is the non-volatile memory. The
operating system is loaded into the RAM by the bootstrap program after the start
of the computer system. Then the operating system starts the device drivers.
• The bootstrapping process does not require any outside input to start. Any
software can be loaded as required by the operating system rather than loading all
the software automatically
Bootstrapping process
Benefits of Bootstrapping
• Without bootstrapping, the computer user would have to download all the
software components, including the ones not frequently required.
• With bootstrapping, only those software components need to be
downloaded that are legitimately required and all extraneous components
are not required. This process frees up a lot of space in the memory and
consequently saves a lot of time.
Computer Organization
• Control Unit –A control unit (CU) handles all processor control signals. It directs all input and
output flow, fetches the code for instructions and controlling how data moves around the system.
• it fetches, decodes and executes instructions
• it issues control signals that control hardware components within the CPU
• it transfers data and instructions around the system
• Arithmetic and Logic Unit (ALU) –The arithmetic logic unit is that part of the CPU that
handles all the calculations the CPU may need, e.g. Addition, Subtraction, Comparisons. It
performs Logical Operations and Arithmetic Operation.
Registers