The Science and Information (SAI) Organization publishes open-access peer-reviewed journals in computer science and artificial intelligence.

Contact Info
Website thesai.org
Follow Us
Contact Info
Follow Us
Research Article | Open Access |

Adaptive Hybrid Synchronization Primitives: A Reinforcement Learning Approach

Author 1: Fadai Ganjaliyev
International Journal of Advanced Computer Science and Applications (IJACSA) · Vol. 11, No. 5 · Published 2020

DOI: https://doi.org/10.14569/IJACSA.2020.0110508

Abstract

The choice of synchronization primitive used to protect shared resources is a critical aspect of application performance and scalability, which has become extremely unpredictable with the rise of multicore machines. Neither of the most commonly used contention management strategies works well for all cases: spinning provides quick lock handoff and is attractive in an undersubscribed situation but wastes processor cycles in oversubscribed scenarios, whereas blocking saves processor resources and is preferred in oversubscribed cases but adds up to the critical path by lengthening the lock handoff phase. Hybrids, such as spin-then-block and spin-then-park, tackle this problem by switching between spinning and blocking depending on the contention level on the lock or the system load. Consequently, threads follow a fixed strategy and cannot learn and adapt to changes in system behavior. To this end, it is proposed to use principles of machine learning to formulate hybrid methods as a reinforcement learning problem that will overcome these limitations. In this way, threads can intelligently learn when they should spin or sleep. The challenges of the suggested technique and future work is also briefly discussed.

Keywords

How to Cite this Article

Fadai Ganjaliyev. "Adaptive Hybrid Synchronization Primitives: A Reinforcement Learning Approach". International Journal of Advanced Computer Science and Applications (IJACSA), Vol. 11, No. 5, 2020. https://doi.org/10.14569/IJACSA.2020.0110508

BibTeX

@article{Ganjaliyev2020,
  title     = {Adaptive Hybrid Synchronization Primitives: A Reinforcement Learning Approach},
  journal   = {International Journal of Advanced Computer Science and Applications},
  volume    = {11},
  number    = {5},
  year      = {2020},
  publisher = {The Science and Information Organization},
  author    = {Fadai Ganjaliyev},
  doi       = {10.14569/IJACSA.2020.0110508},
  url       = {https://doi.org/10.14569/IJACSA.2020.0110508}
}

Open Access — licensed under a Creative Commons Attribution 4.0 International License. Unrestricted use, distribution, and reproduction in any medium, even commercially, as long as the original work is properly cited.