Digital Assignment-1 Name: Ayachitula Sankar Sudheer Reg No: 18BCE0556
Digital Assignment-1 Name: Ayachitula Sankar Sudheer Reg No: 18BCE0556
1.
The computer system is a combination of many parts such as peripheral devices,
secondary memory, CPU etc. This can be explained more clearly using a diagram.
The salient points about the above figure displaying Computer System Organisation
is −
• 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.
Interrupt Handling
An interrupt is a necessary part of Computer System Organisation as it is triggered by
hardware and software parts when they need immediate attention.
An interrupt can be generated by a device or a program to inform the operating system
to halt its current activities and focus on something else. The types of interrupts are
better explained using the following diagram −
Hardware and software interrupts are two types of interrupts. Hardware interrupts are
triggered by hardware peripherals while software interrupts are triggered by software
function calls.
Hardware interrupts are of further two types. Maskable interrupts can be ignored or
disabled by the CPU while this is not possible for non maskable interrupts.
• Input Unit
The input unit provides data to the computer system from the outside. So,
basically it links the external environment with the computer. It takes data from
the input devices, converts it into machine language and then loads it into the
computer system. Keyboard, mouse etc. are the most commonly used input
devices.
• Output Unit
The output unit provides the results of computer process to the users i.e it links
the computer with the external environment. Most of the output data is the form
of audio or video. The different output devices are monitors, printers, speakers,
headphones etc.
• Storage Unit
Storage unit contains many computer components that are used to store data.
It is traditionally divided into primary storage and secondary storage.Primary
storage is also known as the main memory and is the memory directly
accessible by the CPU. Secondary or external storage is not directly accessible
by the CPU. The data from secondary storage needs to be brought into the
primary storage before the CPU can use it. Secondary storage contains a large
amount of data permanently.
• Control Unit
This unit controls all the other units of the computer system and so is known as
its central nervous system. It transfers data throughout the computer as
required including from storage unit to central processing unit and vice versa.
The control unit also dictates how the memory, input output devices, arithmetic
logic unit etc. should behave.
Computer Architecture
Computer Architecture is a blueprint for design and implementation of a computer
system. It provides the functional details and behaviour of a computer system and
comes before computer organization. Computer architecture deals with 'What to do?'
Computer Organization
Computer Organization is how operational parts of a computer system are linked
together. It implements the provided computer architecture. Computer organization
deals with 'How to do?'
Following are some of the important differences between Computer Architecture and
Computer Organization.
Design Computer architecture deals with Computer organization deals with low leve
3
high level design. design.
Sr. Key Computer Architecture Computer Organization
No.
2.
When run, an OpenMP program will use one thread (in the sequential
sections), and several threads (in the parallel sections).
There is one thread that runs from the beginning to the end, and it's
called the master thread. The parallel sections of the program will cause
additional threads to fork. These are called the slave threads.
3.
#include <omp.h>