Processors
Intel® Processors, Tools, and Utilities
14534 Discussions

assembly language routine to add to int in a multiprocessor multi-threaded application properly

MWind2
New Contributor III
469 Views

I confess I am unsure of my reading of the lock instruction in Chapter 8 volume 3a of the of "LOCKED ATOMIC OPERATIONS", and I have some questions. Will a LOCK <supported instructions> <supported types/alignment> be enough to insure each thread on possibly different processors/cores read the updated write properly or be prevented from writing to a stale value? I have read some confusing explanations some of which I suspect are wrong, and I would narrow the request for windows os and assembly language to make the essential as clear as it can be.

0 Kudos
1 Reply
David_V_Intel
Employee
303 Views

Hello MWind2,

 

Thank you for posting on the Intel ® communities.

 

I would recommend you post your inquiry in our Intel ® Developer Zone so you can get the best assistance with your inquiry. Please refer to the link below:

 

https://software.intel.com/en-us/forum

 

 

David V

 

Intel Customer Support Technician

A Contingent Worker at Intel

0 Kudos
Reply