Consider a computer that does not have a TEST AND SET LOCK instruction but does have an

Question:

Consider a computer that does not have a TEST AND SET LOCK instruction but does have an instruction to swap the contents of a register and a memory word in a single indivisible action. Can that be used to write a routine enter_region such as the one found in Fig. 2-12?enter_region: TSL REGISTER, LOCK CMP REGISTER,#0 JNE ENTER REGION RET leave region: | copy LOCK to register

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question

Operating Systems Design And Implementation

ISBN: 9780131429383

3rd Edition

Authors: Andrew Tanenbaum, Albert Woodhull

Question Posted: