MCQ IN COMPUTER SCIENCE & ENGINEERING

COMPUTER SCIENCE AND ENGINEERING

COMPUTER ARCHITECTURE

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
What it means that access to the memory is aligned?
A
The access is aligned if the size of the word is 4 bytes
B
The access is aligned if we can independently access to different memory bytes
C
The access is aligned if the address A of an object of size s bytes satisfy the following condition A mod s = 0.
D
The access is aligned if we have different word formats
Explanation: 

Detailed explanation-1: -Alignment refers to the arrangement of data in memory, and specifically deals with the issue of accessing data as proper units of information from main memory. First we must conceptualize main memory as a contiguous block of consecutive memory locations. Each location contains a fixed number of bits.

Detailed explanation-2: -The CPU can operate on an aligned word of memory atomically, meaning that no other instruction can interrupt that operation. This is critical to the correct operation of many lock-free data structures and other concurrency paradigms.

Detailed explanation-3: -Unaligned memory access is the access of data with a size of N number of bytes from an address that is not evenly divisible by the number of bytes N. If the address is evenly divisible by N, we have aligned memory access.

Detailed explanation-4: -aligned; aligning; aligns To align means to bring something into a straight line, or an easy agreement.

There is 1 question to complete.