Sr. No.
|
CLanguage
|
C++ Language
|
1
|
C is a procedural programming
Language.
|
C++ is a multi-paradigm
language which means it is procedural as well as object oriented language. |
2
|
In C, importance is given to the
steps or procedure of the program.
|
C++ focuses on the data rather
than the process.
|
3
|
Data is not secure because oops
feature such as data hiding etc. are not present in C.
|
Data is secure because it supports
oops concepts.
|
4
|
C is a low-level Language.
|
It is Middle level Language.
|
5
|
C uses the top-down approach .Program
is formulated step by step,
each step is processed into detail. |
C++ uses the bottom-up approach.
In C++ base elements are |
Showing posts with label data. Show all posts
Showing posts with label data. Show all posts
Sunday, 4 January 2015
Difference between C and C++
Friday, 19 April 2013
Direct Memory Access (DMA)
Data transfer between I/O devices and memory is slow due to the speed mismatch in their speeds. This is avoided by removing the CPU from the path and letting the peripheral device manage the memory buses directly. This “data transfer between I/O device and memory without the involvement of CPU is called Direct Memory Access or DMA”.
In this type of data transfer CPU remains free for another processes and has no control of the memory buses. In DMA CPU make use of two control signals i.e. Bus Request (BR) and Bus Grant (BG). BR signal is used by the DMA controller to request the CPU for the control of buses. When this signal is active, CPU terminate the current execution of instruction and places data bus, address bus, and read and write lines into high impedance state. This high impedance state works like open circuit and output is disconnected.BG Signal is used by the CPU to inform that all buses are now in high impedance state and the DMA controller can take the control of buses.
When this transfer is over the DMA disables the Bus Request Signal and CPU Disables the Bus Grant Signal and takes back the control of buses and returns back to its normal Operation.
Two Types of DMA Transfer:-When the buses are under the control of DMA data transfer can be in following ways
Subscribe to:
Posts (Atom)