Computer Architecture Assignment
Computer Architecture Assignment
Submitted To
Md. Nazmus Sakib
Lecturer, Department of CSE.
World University of Bangladesh
Submitted By
Ummay Somaiya
Roll - 2204
Batch - 38(A)
Dept : CSE
Ans to the qus. no. (01)
Raid :
RAID stands for Redundant Array of Independent Disks. Simply put, it’s the process of
using multiple hard drives to make a redundant copy of data.
RAID arrays utilize striping, parity, and mirroring to accomplish data redundancy. It’s
important to understand what these processes mean in order to know which RAID level
to select.
Striping is the process of segmenting a file into multiple parties, and storing each
segment on a different physical disk. This process is great for high I/O operations as
data can be concurrently accessed across multiple devices, increasing throughput. But if
one drive in the striping array fails, it means the file would become corrupt. That’s why
striping is used concurrently with either mirroring or parity.
Parity is used within RAID to achieve data redundancy during drive failure. If a drive in
the array fails, the parity bit is used to rebuild the array on a new hard drive. The
Boolean XOR function is used to rebuild the data stored on the surviving drive along
with the parity data.
Mirroring is simply copying the data on one drive and replicating it onto a second
physical disk. This is the simplest form of RAID and achieves basic data redundancy on
one drive, but it doesn’t offer the performance and storage enhancements that can be
achieved through striping and parity.
Each level of RAID uses a different level of striping, parity, and mirroring to achieve
redundancy. Now that you understand basic RAID terms, let’s review RAID levels:
Amdhal’s Law :
Amdahl’s law is a formula used to find the maximum improvement possible by
improving a particular part of a system. In parallel computing, Amdahl's law is mainly
used to predict the theoretical maximum speedup for program processing using
multiple processors.
Characterizes Amdhal’s Law :
Amdahl's law characterizes the speedup of a parallel program. It assumes perfect load
balance, meaning that all threads / processes do the exact same amount of work and
therefore all finish simultaneously.
Amdahl’s law states that in parallelization, if P is the proportion of a system or program
that can be made parallel, and 1-P is the proportion that remains serial, then the
maximum speedup that can be achieved using N number of processors is 1/((1-P)+(P/N).
Speedup is limited by the total time needed for the sequential (serial) part of the
program. For 10 hours of computing, if we can parallelize 9 hours of computing and 1
hour cannot be parallelized, then our maximum speedup is limited to 10x.
Ans. To the qus. no. (03)
Magnetic Disk :
A magnetic disk is a storage device that uses a magnetization process to write, rewrite
and access data. It is covered with a magnetic coating and stores data in the form of
tracks, spots and sectors. Hard disks, zip disks and floppy disks are common examples of
magnetic disks.
Written onto a magnetic disk :
The write mechanism is based on the fact that electricity flowing through a coil produces
a magnetic field. Pulses are sent to the write head, and magnetic patterns are recorded
on the surface below, with different patterns for positive and negative currents. An
electric current in the wire induces a magnetic field across the gap, which in turn
magnetizes a small area of the recording medium. Reversing the direction of the current
reverses the direction of the magnetization on the recording medium.
Magnetic disks have traditionally been used as primary storage in computers. With the
advent of solid-state drives (SSDs), magnetic disks are no longer considered the only
option, but are still commonly used.
Direct access :
As with sequential access, direct access involves a shared read-write mechanism.
However, individual blocks or records have a unique address based on physical
locati on. Access is accomplished by direct access to reach a general vicinity
plus sequenti al searching, counti ng, or waiti ng to reach the fi nal locati on.
Again, access ti me is variable. Disk units are direct access.
Random access:
Each addressable locati on in memory has a unique, physically wired-in
addressing mechanism. The ti me to access a given locati on is independent of
the sequence of prior accesses and is constant. Thus, any locati on can be
selected at random and directly addressed and accessed.Main memory and
some cache systems are random access.