FC Unit 4
FC Unit 4
Unit 4
INTRODUCTION TO COMPUTER ORGANIZATION & OPERATING
SYSTEM
FUNCTIONAL UNITS:
Input unit: Computer accepts encoded information through input unit. Data
or instruction sent to a main memory using input unit.
1
FC : Unit 4:
Memory unit: The function of memory unit stores the program and data
permanently or temporary, there are two types:
Primary memory
Secondary memory
Ex: RAM
Arithmetic and Logic unit: Most of the computer operations are performed in
ALU. It consists of electronic logic circuits to perform arithmetic operations like
addition subtraction, multiplication, division and logic operations like AND, OR
etc.
Control unit: It is a main unit in a computer system the function of this unit is to
control and co-ordinate with all other units of a computer system.
ALU and Control unit together called CPU [Control Processing Unit].
2
FC : Unit 4:
3
FC : Unit 4:
1. According to Flynn's there are four different classification of computer
a. SISD (Single Instruction Single Data Stream)
b. SIMD (Single Instruction Multiple Data Stream)
c. MISD (Multiple Instruction Single Data stream)
d. MIMD (Multiple Instruction Multiple Data Stream)
4
FC : Unit 4:
architecture where all the instruction and data to be processed have to be stored in primary
memory.
Single instruction: Only one instruction stream is being acted or executed by CPU
during one clock cycle.
Single data stream: Only one data stream is used as input during one clock cycle.
Ex:
5
FC : Unit 4:
Performance,
Ability,
Access Time,
Cost per bit
Level-0:
At level-0, registers are present which are contained inside the CPU.
Since they are present inside the CPU, they have least access time.
They are most expensive and therefore smallest in size (in KB).
Registers are implemented using Flip-Flops
Level-1:
6
FC : Unit 4:
Level-2:
Level-3:
Level-4:
7
FC : Unit 4:
Cache Memories
Cache Performance
When the processor needs to read or write a location in main memory, it first checks
for a corresponding entry in the cache.
If the processor finds that the memory location is in the cache, a cache hit has
occurred and data is read from cache
If the processor does not find the memory location in the cache, a cache
miss has occurred. For a cache miss, the cache allocates a new entry and
copies in data from main memory, then the request is fulfilled from the
contents of the cache.
8
FC : Unit 4:
Application
Usually, the cache memory can store a reasonable number of blocks at any
given time, but this number is small compared to the total number of blocks in
the main memory.
The correspondence between the main memory blocks and those in the cache
is specified by a mapping function.
Advantages
9
FC : Unit 4:
BIOS Functions
POST : Testing of computer hardware and also making sure that no error is there
while loading the operating system.
Bootstrap Loader: Once the capable operating system is loaded, the BIOS passes
the control to the operating system.
BIOS Drivers: Low level drivers that give computer basic control over computer’s
basic hardware.
BIOS Setup: Hardware settings can be configured using this setup including system
settings such as system password, time and date.
10
FC : Unit 4:
UEFI
Unified Extensible Firmware Interface (UEFI)
UEFI is low-level software
It connects a computer's firmware to its operating system.
Like BIOS, UEFI is installed at the time of manufacturing and is the first
program that runs when booting a computer.
UEFI stores all the information about initialization and start up in a .efi file, a
file stored on a special partition called EFI System Partition (ESP). The ESP
partition will also contain the boot loader programs for the operating system
installed on the computer.
It is because of this partition; UEFI can directly boot the operating system and
has faster booting.
Both UEFI and BIOS are low-level software that starts when you boot your PC
before booting your operating system, but UEFI is a more modern solution,
supporting larger hard drives, faster boot times, more security features, and—
conveniently—graphics and mouse cursors.
UEFI supports drive sizes up to 9 zetta bytes, whereas BIOS only supports
2.2 terabytes.
UEFI provides faster boot time.
UEFI runs in 32bit or 64bit mode, whereas BIOS runs in 16bit mode.
UEFI has discrete driver support, while BIOS has drive support stored in
its ROM, so updating BIOS firmware is a bit difficult.
11
FC : Unit 4:
Operating System
History Of OS
Operating systems were first developed in the late 1950s to manage tape
storage
The General Motors Research Lab implemented the first OS in the early
1950s for their IBM 701
In the mid-1960s, operating systems started to use disks
In the late 1960s, the first version of the Unix OS was developed
The first OS built by Microsoft was DOS. It was built in 1981 by
purchasing the 86-DOS software from a Seattle company
The present-day popular OS Windows first came to existence in 1985 when
a GUI was created and paired with MS-DOS.
12
FC : Unit 4:
Types of OS
The user of a batch operating system never directly interacts with the computer.
In this type of OS, every user prepares his or her job on an offline device like a
punch card and submits it to the computer operator.
3. Multiprocessing OS
Multiprocessor Operating System refers to the use of two or more central
processing units (CPU) within a single computer system. A multiprocessing
operating system is capable of running many programs simultaneously. Each
processor can share main memory and peripherals in order to simultaneously
execute programs.
13
FC : Unit 4:
4.Real time OS
In a real time operating system, time interval to process and respond to inputs is
very small. Examples: Military Software Systems, Space Software Systems are
the Real time OS example.
7.Mobile OS
Mobile operating systems are those OS which are designed to power
smartphones, tablets, and wearables devices .
14
FC : Unit 4:
Memory Management
Process Management
Device Management
File Management
I/O system management
Communication management
Control over system performance
Security
Job accounting
Networking
Memory management:- Memory management module performs the task of
allocation and de-allocation of memory space to programs.
Process management:- Process management helps OS to create and delete
processes and provides communication among processes.
Device Management:- Device management keeps tracks of all devices. It also
performs the task of allocation and de-allocation of the devices.
File management:- It manages all the file-related activities such as storage,
retrieval, naming, sharing, and protection of files.
I/O system management:- provides coordination and communication among
various I/O devices and handles functionality issues
Communication management:- Coordination and assignment of compilers,
interpreters, and another software resource of the various users of the computer
systems.
Control over system performance:− Recording delays between request for a
service and response from the system.
Security:- Security module protects the data and information of a computer
system against malware threat and unauthorized access.
Job accounting:- Keeping track of time & resource used by various job and
users.
Networking:- A distributed system is a group of processors which do not share
memory, hardware devices, or a clock. The processors communicate with one
another through the network.
15