Identifying lock granularization opportunities
Abstract
Lock granularization opportunities are identified in computer code. A processor is used to generate synchronized code blocks and fields (data) accessed in each code block. Each of the code blocks can then be represented by a set. A list of non-intersecting synchronized code blocks having no commonly accessed fields is generated, and a list of intersecting synchronized code blocks (code blocks each having at least one commonly accessed field) is also generated. Equal and superset-subset lists are then generated from the list of intersecting synchronized code blocks. Granularized locks are applied directly around the fields that are accessed within code blocks represented by non-intersecting and equal sets. Granularized locks are also applied around the fields that are accessed within code blocks represented by the superset, and the same locks are applied to code blocks represented by the subsets, thereof.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 22 · Forward citations: 3.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
A computer implemented method for identifying lock granularization opportunities in computer code, comprising: generating data, with a processor, comprising synchronized code blocks and fields accessed in each code block, wherein each of said code blocks and the fields they access are represented by a set; generating a list with said processor of any non-intersecting synchronized code blocks, wherein said non-intersecting synchronized code blocks have no commonly accessed fields; granularizing locks directly around fields that are accessed within code blocks represented by non-intersecting set
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (3 of 3 total)
References Cited — Backward Prior Art (22)
Non-Patent Literature (2)
- Zhang, Yaun et al.; "Minimum Lock Assignment: A Method for Exploiting Concurrency Among Critical Sections"; Lecture Notes in Computer Science, v 5335 LNCS, pp. 141-155, 2008; Languages and Compilers for Parallel Computing-21st International Workshop, LCPC 2008; Springer Verlag; http://www.cs.ualbert
- Zhang, Yaun et al.; "Minimum Lock Assignment: A Method for Exploiting Concurrency Among Critical Sections"; Lecture Notes in Computer Science, v 5335 LNCS, pp. 141-155, 2008; Languages and Compilers for Parallel Computing—21st International Workshop, LCPC 2008; Springer Verlag; http://www.cs.ualbert