Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

如何更好理解Peterson算法? | Meditations #4

Open
Borne912 opened this issue Apr 4, 2022 · 0 comments
Open

如何更好理解Peterson算法? | Meditations #4

Borne912 opened this issue Apr 4, 2022 · 0 comments

Comments

@Borne912
Copy link
Owner

Borne912 commented Apr 4, 2022

https://yapwn.com/archives/%E5%A6%82%E4%BD%95%E6%9B%B4%E5%A5%BD%E7%90%86%E8%A7%A3Peterson%E7%AE%97%E6%B3%95/#more

如何更好理解Peterson算法?1 Peterson算法提出的背景在我们讲述Peterson算法之间,我们先了解一下Peterson算法提出前的背景(即:在这个算法提出之前,前人们都做了哪些工作)这对于我们之后理解Peterson算法有很大的裨益。 Peterson 算法是基于双线程互斥访问的LockOne与LockTwo算法而来。LockOne算法使用一个 flag 布尔数组,LockTwo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant