The Gateway to Computer Science Excellence
0 votes
59 views
Return value of xchg instruction is_____________

1.  Old value

2.  New value

3 . 1 if operation succeeds and 0 if operation fails

4. None of the above
in Operating System by | 59 views

1 Answer

0 votes
A) Old value

SYNTAX is xchg(Oldvalue , New Value) . When the xchg is executed the old value is exchanged with  new value

and in return you get oldvalue . Then only the instruction is executed Sucessfully .

This instruction is used in Intel Processor :)
by
Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true
52,345 questions
60,506 answers
201,910 comments
95,341 users