发明名称 METHOD OF SYNCHRONISING ACCESS TO SHARED RESOURCES OF COMPUTER SYSTEM UNDER CONTROL OF POSIX-COMPATIBLE OS AND DETECTING AND ELIMINATING DEADLOCKS USING LOCK FILES
摘要 FIELD: information technologies.SUBSTANCE: invention relates to a method of detecting and eliminating deadlocks using lock files. Associating the shared resource with locking file. Cause system call for atomic exclusive creation and opening of the temporary file with a unique name in the same file system. Carry out system call for creating a hard link with the name of lock file to temporary file. If the system call for creating a hard link is successful, the removed hard link to the temporary file is removed and the current process operations with shared resource is ensured. If the current process does not exist in the system, then the elimination of deadlock is carried out by performing the following steps: remove from the existing lock file previous data on non-existent process; enter data on the current process into the existing lock file. Remove file lock of recording form the existing lock file. Ensure implementation of operations with shared resource by the current process. Remove existing lock file.EFFECT: technical result consists in improving reliability of detecting and eliminating deadlocks.1 cl
申请公布号 RU2577200(C1) 申请公布日期 2016.03.10
申请号 RU20140143964 申请日期 2014.10.31
申请人 OTKRYTOE AKTSIONERNOE OBSHCHESTVO "INFORMATSIONNYE TEKHNOLOGII I KOMMUNIKATSIONNYE SISTEMY" 发明人 MARDUGALLJAMOV RUSLAN TAKHIROVICH
分类号 G06F9/50;G06F13/42 主分类号 G06F9/50
代理机构 代理人
主权项
地址