Digital Assignment-1
Digital Assignment-1
Digital Assignment-1
The organization of a simple computer with one CPU and two I/O devices
Central processing Unit:
The central processing unit (CPU) is the unit which performs most of the processing
inside a computer. To function properly, the CPU relies on the system clock, memory,
secondary storage, and data and address buses.
CPU have Arithmetic and Logic Unit (ALU) and Control Unit.
Arithmetic and Logic Unit (ALU)
Control Unit:-
Memory:-
Main Memory:
Closely connected to processor,Stored data are quickly and easly changed,holds the
programs and data that the processor is actively working with, needs constant electric
power to keep its information and interacts with the processor millions of times per
second.
Secondary memory:
connected to main memory through the bus and a controller, stored data are easily
changed; but changes are slow compared to main memory,used for long-term storage of
programs and data before data and programs can be used; they must be copied from
secondary memory into main memory and does not need electric power to keep its
information
b)Study of parallel programming languages and introduction to Open MP
Parallel Computing :
Parallel computing is the use of two or more processors in combination to solve a single
problem. Problems that require large amount of computation memory or both.Parallel
computing has made a tremendous impact on a variety of areas ranging from
computational simulations for scientific and engineering applications to commercial
applications in data mining and transaction processing.
The computing resource includes:-
#include<stdio.h>
#include<conio.h>
#include<omp.h>
void main(void)
omp_set_num_threads(3);
printf("sample\n");
}
OUTPUT:
CODE:
#include<stdio.h>
#include<conio.h>
#include<omp.h>
void main(void)
omp_set_num_threads(10);
printf("sample\n");
OUTPUT: