Ce diaporama a bien été signalé.
Le téléchargement de votre SlideShare est en cours. ×

Explain what happen in executing the EXCH instruction and in cache coh.docx

Publicité
Publicité
Publicité
Publicité
Publicité
Publicité
Publicité
Publicité
Publicité
Publicité
Publicité
Publicité

Consultez-les par la suite

1 sur 1 Publicité

Explain what happen in executing the EXCH instruction and in cache coh.docx

Télécharger pour lire hors ligne

Explain what happen in executing the EXCH instruction and in cache coherence operations to cause the processor to jump back to spin at lock it again?
Solution
The EXCH instruction exchanges the contents of the register R1 to register R2 and vice versa.It returns 0 if successful.
In a shared memory multiprocessor with a separate cache memory for each processor , it is possible to have many copies of any one instruction operand : one copy in the main memory and one in each cache memory. When one copy of an operand is changed, the other copies of the operand must be changed also. Cache coherence is the discipline that ensures that changes in the values of shared operands are propagated throughout the system in a timely fashion.
There are three distinct levels of cache coherence:
The BNEZ instruction checks if EXCH returned 0 or not if it is not 0 then it goes to lockit.
the lockit function executes until the EXCH is successful.
.

Explain what happen in executing the EXCH instruction and in cache coherence operations to cause the processor to jump back to spin at lock it again?
Solution
The EXCH instruction exchanges the contents of the register R1 to register R2 and vice versa.It returns 0 if successful.
In a shared memory multiprocessor with a separate cache memory for each processor , it is possible to have many copies of any one instruction operand : one copy in the main memory and one in each cache memory. When one copy of an operand is changed, the other copies of the operand must be changed also. Cache coherence is the discipline that ensures that changes in the values of shared operands are propagated throughout the system in a timely fashion.
There are three distinct levels of cache coherence:
The BNEZ instruction checks if EXCH returned 0 or not if it is not 0 then it goes to lockit.
the lockit function executes until the EXCH is successful.
.

Publicité
Publicité

Plus De Contenu Connexe

Plus par rtodd432 (20)

Publicité

Plus récents (20)

Explain what happen in executing the EXCH instruction and in cache coh.docx

  1. 1. Explain what happen in executing the EXCH instruction and in cache coherence operations to cause the processor to jump back to spin at lock it again? Solution The EXCH instruction exchanges the contents of the register R1 to register R2 and vice versa.It returns 0 if successful. In a shared memory multiprocessor with a separate cache memory for each processor , it is possible to have many copies of any one instruction operand : one copy in the main memory and one in each cache memory. When one copy of an operand is changed, the other copies of the operand must be changed also. Cache coherence is the discipline that ensures that changes in the values of shared operands are propagated throughout the system in a timely fashion. There are three distinct levels of cache coherence: The BNEZ instruction checks if EXCH returned 0 or not if it is not 0 then it goes to lockit. the lockit function executes until the EXCH is successful.

×