Method and apparatus for locking file in memory
Embodiments of the present disclosure relate to a method and apparatus for locking a file in a memory. The method comprises enabling a thread to obtain a mixed lock of a file. The method further comprises, in response to enabling the thread to obtain the mixed lock, enabling a further thread to obtain a shared lock of the file, and prevent the further thread from obtaining the exclusive lock or mixed lock of the file. By adding a new mixed lock to a traditional read and write lock, embodiments of the present disclosure improve concurrent access performance of the file system.
EMC IP Holding Company LLC
G
G06F
inventional
Donglei Chen Ted Guangkai Denny Dengyu Bean Bin Lester Ming
Wang Gong Zhang Wang Zhao Zhang