The Gateway to Computer Science Excellence
0 votes
49 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 (249 points) | 49 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 Loyal (9.8k points)
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
50,644 questions
56,531 answers
195,625 comments
101,353 users