On Wed, 3 Nov 2004, Shachar Shemesh wrote:
> Nadav Har'El wrote:
>
> >When a single-CPU machine does a context switch, it doesn't do it in the
> >middle of a machine instruction, it does it afterwards.
> >
> This sentance is not universally true, though I don't have details of
> contradicting examples on hand. Yes, astonishing as it may sound, some
> CPUs save their internal state on interrupt, and resume mid-operation.
> That is, unless my memory is playing tricks of me (which is not impossible).
Example which comes to my mind: 80x86 string operations with the rep
prefix. Those string operations modify SI, DI and memory. When context
switch occurs and the operation is restarted, it is restarted with the
current values of SI and DI.
--- Omer
My opinions, as expressed in this E-mail message, are mine alone.
They do not represent the official policy of any organization with which
I may be affiliated in any way.
WARNING TO SPAMMERS: at http://www.zak.co.il/spamwarning.html
=================================================================
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]