首页> 外文期刊>Journal of Parallel and Distributed Computing >Simple, space-efficient, and fairness improved FCFS mutual exclusion algorithms
【24h】

Simple, space-efficient, and fairness improved FCFS mutual exclusion algorithms

机译:简单,节省空间和公平的改进FCFS互斥算法

获取原文
获取原文并翻译 | 示例
       

摘要

Let n be the number of threads that can compete for a shared resource R. The mutual exclusion problem involves coordinating these n concurrent threads in accessing R in a mutually exclusive way. This paper addresses two basic questions related to the First-Come-First-Served (FCFS) mutual exclusion algorithms that use only read-write operations: one is regarding the lower bound on the shared space requirement and the other is about fairness. The current best FCFS algorithm using read-write operations requires 5n shared bits. Could the shared space requirement be further reduced? The existing FCFS mutual exclusion algorithms assure fairness only among the threads which cross the 'doorway' sequentially. In systems with multicore processors, which are becoming increasingly common nowadays, threads can progress truly in parallel. Therefore, it is quite likely that several threads can cross the doorway concurrently. In such systems, the threads which cross the doorway sequentially may constitute only a fraction of all competing threads. While this fraction of threads follow the FCFS order, the rest of the threads have to rely on a biased scheme which always favors threads with smaller identifiers. Is there a simpler way to remove this bias to assure global fairness? This paper answers the above two questions affirmatively by presenting simple FCFS mutual exclusion algorithms using only read-write operations-the first one using 3n shared bits and the latter algorithms using An shared bits. The resulting algorithms are simple, space-efficient, and highly fair.
机译:令n为可以竞争共享资源R的线程数。互斥问题涉及在以互斥方式访问R时协调这n个并发线程。本文提出了两个与仅使用读写操作的先来先服务(FCFS)互斥算法有关的基本问题:一个是关于共享空间要求的下限,另一个是关于公平性。当前使用读写操作的最佳FCFS算法需要5n个共享位。共享空间需求是否可以进一步降低?现有的FCFS互斥算法仅在顺序穿过“门口”的线程之间确保公平。在当今越来越普遍的带有多核处理器的系统中,线程可以真正并行进行。因此,很可能多个线程可以同时穿过门口。在这样的系统中,相继穿过门口的线可以仅构成所有竞争线的一部分。尽管这部分线程遵循FCFS顺序,但其余线程必须依赖于偏向方案,该方案始终偏向于使用具有较小标识符的线程。有没有更简单的方法来消除这种偏见,以确保全球公平?本文通过提出仅使用读写操作的简单FCFS互斥算法来肯定地回答上述两个问题-第一个使用3n共享位,而后一个使用An共享位。生成的算法简单,节省空间且非常公平。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号