LOCK

Lock translate to monitor

https://github.com/dotnet/roslyn/blob/56f605c41915317ccdb925f66974ee52282609e7/src/Compilers/CSharp/Portable/Lowering/LocalRewriter/LocalRewriter_LockStatement.cs

Intel’s ‘cmpxchg’ instruction

http://heather.cs.ucdavis.edu/~matloff/50/PLN/lock.pdf

http://www.moserware.com/2008/09/how-do-locks-lock.html

https://blogs.msdn.microsoft.com/vancem/2006/03/28/low-lock-techniques-in-action-implementing-a-reader-writer-lock/

http://www.blogjava.net/xylz/archive/2010/07/07/325410.html

http://stackoverflow.com/questions/12894078/pause-instruction-in-x86

https://software.intel.com/en-us/articles/implementing-scalable-atomic-locks-for-multi-core-intel-em64t-and-ia32-architectures

Intel® 64 and IA-32 Architectures Software Developer’s Manual

http://www.intel.com/content/dam/www/public/us/en/documents/manuals/64-ia-32-architectures-software-developer-system-programming-manual-325384.pdf

 

https://msdn.microsoft.com/en-us/library/system.threading.spinlock(v=vs.110).aspx

你可能感兴趣的:(LOCK)