answersLogoWhite

0

What is the use of 'lock' statement?

Updated: 8/19/2019
User Avatar

Wiki User

12y ago

Best Answer

The lock prefix on the 8086/8088 prevents any other bus master from accessing the bus during this instruction, even if this instruction is a multiple access instruction. It assures atomicity and data consistency in a multi-computer environment, but only for a single instruction. It is generally used to manipulate a mutex or semaphore.

User Avatar

Wiki User

12y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is the use of 'lock' statement?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Which lock type is initially acquired when you use the SELECT ... FOR UPDATE statement?

"row- exclusive


Rim lock key lost?

that's too bad.... Is there a question attached to this statement


What is the difference between a declarative statement and an imperative statement?

In a declarative statement, you initialize the object. But in an imperative statement, you use a preexisting statement and use it.


What makes a bike lock easy to use?

A bike lock is easy to use when it is easy for the owner to lock and use, but difficult for a thief to crack or break. It should have a lock that can be opened either with a key or combination.


What is the difference between 'switch' statement and 'if' statement?

we can use switch statement in multiple time but in if statement we can not use multiple time


Can a continue statement be used in a switch statement?

If you have a loop in your switch statement or around your switch statement, you can use the continue statement in that. You cannot use a continue statement outside of a loop (do, for, or while).


Can the keypad on a ATT tilt lock?

If you go to Launchers menu - there is lock button, which you can use to key lock.


How can lock the pen drive?

You can use BitLocker to lock your drive, or you can use 3rd party software such as TrueCrypt, Kakasoft Advanced Folder Encryption to lock the pendrive.


Is a combination lock a padlock?

A combination lock is not the same as a padlock. A combination lock could be in a padlock. A padlock can use different lock mechanisms, including a combination lock.


What is the subjec t the lock on the jail door was old and rusty from lack of use?

The subject of the sentence is "the lock on the jail door." It is the object being described as old and rusty due to lack of use.


What are all the enzymes that use the lock and key model?

ALL enzymes use the lock and key model!


How do you use statement in a sentence?

A statement is a sentence that conveys information or opinion. In writing, you can use a statement to make a point or provide a fact. For example, "Her statement about the company's financial situation was concerning."