Page 1 of 1

test and set lock

Posted: Sun Jul 06, 2003 1:52 am
by Ozguxxx
Hi is there an intel version of the tsl instruction that tanenbaum tells about in his book?
TSL: Test and set lock
----------------------------
Copies value of some memory location to a register and sets a new value to this memory location. All this is done atomically.

Re:test and set lock

Posted: Sun Jul 06, 2003 3:01 am
by DevL
Have you lookd in the Intel manuals yet? Volume 2 would be your best bet.

Re:test and set lock

Posted: Sun Jul 06, 2003 4:19 am
by Tim
LOCK XCHG, but read the manual.

Re:test and set lock

Posted: Sun Jul 06, 2003 11:20 am
by Ozguxxx
Hey thanx, I read manual ;D.