arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 1903.10402cs.DCcs.DS
收藏

共享存储器的两个互斥算法

Two Mutual Exclusion Algorithms for Shared Memory

Jordi Bataller Mascarell

摘要:

在本文中,我们介绍了两个算法,解决了通过共享变量通信的并发进程的互斥问题,[2]。我们的算法保证任何试图进入临界区的进程最终都能进入临界区,并被正式证明是正确的。第一个算法使用一个特殊的协调进程,以确保平等的机会,以等待临界区的进程。在第二个算法中,没有协调器,退出临界区的进程负责公平地选择下一个进程。在没有进程等待的情况下,该回合被标记为空闲,并将由未来的等待进程确定。使用的共享变量类型是一个turn变量,所有进程都可读和可写;和一个flag数组,所有进程都可读,flag[i]只能由进程i写。第一种算法有一个版本,其中没有使用所有变量都可写。本文所参考的文献为[4]和[3],其余均为原创性工作。

英文摘要:

In this paper, we introduce two algorithms that solve the mutual exclusion problem for concurrent processes that communicate through shared variables, [2]. Our algorithms guarantee that any process trying to enter the critical section, eventually, does enter it. They are formally proven to be correct. The first algorithm uses a special coordinator process in order to ensure equal chances to processes waiting for the critical section. In the second algorithm, with no coordinator, the process exiting the critical section is in charge to fairly elect the following one. In the case that no process is waiting, the turn is marked free and will be determined by future waiting processes. The type of shared variables used are a turn variable, readable and writable by all processes; and a flag array, readable by all with flag[i] writable only by process i. There is a version of the first algorithm where no writable by all variable is used. The bibliography reviewed for this paper is [4] and [3], all the rest is original work.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑