Processors
Processors (Intel® Core™, Intel® Xeon®, etc); processor utilities and programs (Intel® Processor Identification Utility, Intel® Extreme Tuning Utility, Intel® Easy Streaming Wizard, etc.)
Announcements
This community is designed for sharing of public information. Please do not share Intel or third-party confidential information here.
12371 Discussions

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

MWind2
New Contributor II
270 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
104 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

Reply