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

Why not block in find at lock acquiring? #4

Open
jy5275 opened this issue Sep 3, 2020 · 0 comments
Open

Why not block in find at lock acquiring? #4

jy5275 opened this issue Sep 3, 2020 · 0 comments

Comments

@jy5275
Copy link

jy5275 commented Sep 3, 2020

In find method, the code doesn't block when the ListMutex lock is already held by another thread. But this may cause the eviction violate LRU policy.
If a pair is frequently visited. But unfortunatly, each time the visiting thread could not acquire ListMutex, the pair will always stay near the tail of the LRU list and is vulnerable to be evicted - which is not expected under LRU policy.

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

No branches or pull requests

1 participant