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

死锁的定义 #1626

Open
Feyl opened this issue Mar 18, 2022 · 1 comment
Open

死锁的定义 #1626

Feyl opened this issue Mar 18, 2022 · 1 comment
Labels
perfect content 内容完善

Comments

@Feyl
Copy link
Contributor

Feyl commented Mar 18, 2022

操作系统常见面试题总结#什么是死锁
我感觉下面对于的死锁定义更加合适(来源:百度百科):

死锁是指两个或两个以上的进程在执行过程中,由于竞争资源或者由于彼此通信而造成的一种阻塞现象,若无外力作用,它们都将无法推进下去。此时称系统处于死锁状态或系统产生了死锁,这些永远在互相等待的进程称为死锁进程。

@Snailclimb
Copy link
Owner

操作系统常见面试题总结#什么是死锁 我感觉下面对于的死锁定义更加合适(来源:百度百科):

死锁是指两个或两个以上的进程在执行过程中,由于竞争资源或者由于彼此通信而造成的一种阻塞现象,若无外力作用,它们都将无法推进下去。此时称系统处于死锁状态或系统产生了死锁,这些永远在互相等待的进程称为死锁进程。

感谢指出,我这样完善了一下:

死锁描述的是这样一种情况:多个进程/线程同时被阻塞,它们中的一个或者全部都在等待某个资源被释放。由于进程/线程被无限期地阻塞,因此程序不可能正常终止。

@Snailclimb Snailclimb added the perfect content 内容完善 label Mar 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
perfect content 内容完善
Projects
None yet
Development

No branches or pull requests

2 participants