Invention Grant
US08386720B2 Method for allowing exclusive access to shared data 失效
允许独占访问共享数据的方法

Method for allowing exclusive access to shared data
Abstract:
A method of allowing exclusive access to shared data by a computing device and a computer readable article embodying instructions for executing the method. The method includes: reading from a storage unit into a memory a program including a code for execution in a critical section and an instruction to write a value into or read a value from a shared data area in the memory; acquiring a lock on the critical section before start of a first instruction in the critical section; writing a value into a thread-local area in the memory in response to an instruction to write the value into the shared data area; writing into the shared data area the value written into the thread-local area upon completion of a final instruction in the critical section; and releasing the lock on the critical section, thereby allowing exclusive access to shared data.
Public/Granted literature
Information query
Patent Agency Ranking
0/0