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

怎么写一个死锁? - 磊叔的技术博客 #17

Open
glmapper opened this issue Apr 23, 2022 · 0 comments
Open

怎么写一个死锁? - 磊叔的技术博客 #17

glmapper opened this issue Apr 23, 2022 · 0 comments

Comments

@glmapper
Copy link
Owner

http://localhost:4000/2018/11/10/java/java-advance-juc-thread-deadlock/

原文:https://juejin.cn/post/6844903520886325255 看着看着就想着怎么能写一个死锁呢,打开 eclipse,突然感觉无从下手;之前都是一直在解决阻塞、死锁这些问题,现在反过来去写一个死锁感觉有点莫名奇妙。。。 ok, 写一个死锁就要有一种场景,并且满足死锁的条件。 互斥条件:一个资源每次只能被一个进程使用。 请求与保持条件:一个进程因请求资源而阻塞时,

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