multithreading - How processor deals with instruction upon interrupt -


what happen if in middle of long instruction cpu recieves interruption? cpu execute whole instruction or part of it?

from programmer's point of view, either specific instruction retired, , side effects committed registers/memory or isn't (and it's if instruction wasn't executed @ all). whole point of instruction retirement guarantee coherent view of program state @ point of external events, such interrupts.

that's notably why instructions retire in order, external observers can still @ architectural state of cpu if executing sequentially instructions.

there exceptions this, notably rep-string class of instructions.

i believe asked about, if not, let me ask you: how observe instruction "partially" executed anywhere ?


Comments

Popular posts from this blog

java - SNMP4J General Variable Binding Error -

windows - Python Service Installation - "Could not find PythonClass entry" -

Determine if a XmlNode is empty or null in C#? -