发明名称 Exclusive access control method prohibiting attempt to access a shared resource based on average number of attempts and predetermined threshold
摘要 An exclusive access control method is executed by a computer having an operating system that when an excluded thread accesses a shared resource, executes a first exclusive access control process of prohibiting the excluded thread from attempting to access the shared resource until exclusive access control is released, the exclusive access control process being executed according to a number of attempts, by the excluded thread, to access the shared resources. The exclusive access control method includes counting by at least one second thread, including the excluded thread and different from a first thread, the number of attempts to access the shared resource, when the first thread executes a second exclusive access control process of allowing the excluded thread to attempt to access the shared resource until the excluded thread is permitted access; and storing to a memory area by the second thread, the counted number of attempts.
申请公布号 US9632842(B2) 申请公布日期 2017.04.25
申请号 US201314036272 申请日期 2013.09.25
申请人 FUJITSU LIMITED 发明人 Suzuki Takahisa;Yamashita Koichiro;Yamauchi Hiromasa;Kurihara Koji;Otomo Toshiya;Odate Naoki
分类号 G06F9/52;G06F12/00 主分类号 G06F9/52
代理机构 Staas & Halsey LLP 代理人 Staas & Halsey LLP
主权项 1. An exclusive access control method executed by a computer having an operating system comprising: counting by at least one second thread of a plurality of threads, a number of attempts by each of the at least one second thread to access a shared resource, the at least one second thread being of a plurality of second threads, the at least one second thread being different from a first thread, and each of the plurality of second threads counting the number of attempts, when the first thread among the plurality of threads executes a second exclusive access control process of allowing the plurality of second threads to attempt to access the shared resource until the plurality of second threads is permitted access; storing in the memory area by each of the plurality of second threads, each of the number of attempts counted at the counting; calculating, by the operating system, an average of the counted numbers of attempts of each second thread; determining, by the operating system, whether the calculated average is at least equal to a predetermined given number; and changing, by the operating system, when the average is at least equal to the given number and upon any of the plurality of second threads attempting to access the shared resource, the second exclusive access control process to a first exclusive access control process of prohibiting the plurality of second threads from attempting to access the shared resource until exclusive access control is released by the first thread, the first exclusive access control process being different from the second exclusive access control process.
地址 Kawasaki JP