`
xunixyoung
  • 浏览: 13089 次
  • 性别: Icon_minigender_1
  • 来自: 上海
最近访客 更多访客>>
社区版块
存档分类
最新评论

defference between "deadlock" and "starving"

阅读更多

What is the difference between "deadlock" and "starving"? 这似乎是一道很经典的操作系统里关于进程的问题哦.好像EMC和Sybase都考过。难度倒不是很大,只要你理解了deadlock和starving的概念。不过好多外企都是要求用英语做答的


Starving and deadlock are two kinds of the process status. If a process stays at starvation or deadlock, that means it is waiting for getting the needed share resource which has been holding by other processes. When the resource is released, the process status is going to be changed from starvation to run, but for deadlock, it has no chance to get the needed share resource the process needs. Because another process which has been holding the resource needed by the front process, but the second process is staying there to wait for the first process to release the another resource needed by itself. That is to say, they are waiting for each other's releasing the share resourece they need. Dealock is a innormal status which should be as much avoided as possible by the system designer.

分享到:
评论

相关推荐

    Java DeadLock and Concurrency

    2. 持有并等待条件(Hold and Wait Condition):线程在请求新资源的同时保持对已有资源的占有。 3. 无抢占条件(No Preemption Condition):资源只能由占有它的线程释放;在其他线程调用前,资源不能被强行从当前...

    SQL Server上的一个奇怪的Deadlock及其分析方法

    SQL Server上的一个奇怪的Deadlock及其分析方法 Deadlock是SQL Server中的一种常见问题,它会导致事务无法继续执行,影响系统的性能和可靠性。了解Deadlock的产生原因和分析方法是非常重要的。本文将详细介绍SQL ...

    DeadLock查找死锁位置

    DeadLock查找死锁的位置及解决 DeadLock查找死锁的位置及解决

    SQL Server Blocking and Deadlock

    ### SQL Server 中的阻塞与死锁 #### 一、SQL Server事务的ACID特性 在探讨SQL Server中的阻塞和死锁之前,我们首先需要理解事务的基本特性——ACID特性,即原子性(Atomicity)、一致性(Consistency)、隔离性...

    C3P0错误APPARENT DEADLOCK 解决根本问题

    网上传言C3P0是因为本身的BUG问题,然而今天我遇到这个问题并解决了,结果发现并不是。通过配置c3p0.maxStatements=0 这种方案只是治标不治本,或者干脆无效。我上传的解决方案肯定能解决这个问题的根本原因。...

    Deadlock_Avoidance_in_PCI_Express_Based_Systems_Final

    在PCI Express技术中,死锁(Deadlock)是一个非常关键的问题,它是指多个代理(Agent)在执行任务过程中相互等待,导致系统资源无法被进一步使用,从而造成整个系统的停滞。 在文章《Deadlock Avoidance in PCI ...

    c语言 deadlock

    在计算机科学中,死锁(Deadlock)是一个关键的系统状态问题,特别是在多线程编程和操作系统设计中。当我们谈论"C语言死锁"时,实际上是在讨论如何在使用C语言编写多线程程序时避免死锁的发生。死锁是指两个或多个...

    DeadlockDetector 无限使用版

    With SQL Deadlock Detector, you can: Monitor and detect long-running locks and deadlocks 24/7 Identify blocking SQL code, locked objects and deadlock victims with pinpoint accuracy Accelerate system ...

    Deadlock detection

    ### 死锁检测方法 #### 引言 在并发编程中,锁机制是避免线程间数据竞争的重要手段。然而,当多个线程试图获取彼此持有的锁时,可能会发生死锁现象,导致程序无限期地等待。传统的分布式系统和数据库中的死锁处理...

    Static Deadlock Detection in MPI Synchronization Communication

    《静态死锁检测在MPI同步通信中的应用》这篇文章深入探讨了在高性能计算(HPC)领域,特别是使用Message Passing Interface (MPI)进行同步通信时,如何有效地检测和预防死锁问题。MPI是一种广泛用于分布式计算环境的...

    go-deadlock:go (golang) 中的在线死锁检测

    什么go-deadlock 为 sync.(RW)Mutex 提供了 (RW)Mutex 的替代品。 如果您创建频道的意大利面,它将不起作用。 仅互斥体。安装go get github.com/sasha-s/go-deadlock/...用法 import "github....

    Microsoft SQL Server 2012 T-SQL Fundamentals

    Get started with the ... update, delete, and merge data Go beyond the fundamentals with pivoting techniques and set grouping Isolate inconsistent data and address deadlock and blocking scenarios

    微软内部资料-SQL性能优化3

    Note the differences between Key and Key Range locks. Key Range locks will be covered in a couple of slides. SQL Server can lock these resources: Item Description DB A database. File A database file ...

    some-hints-on-how-to-encure-deadlock-in-SOA-and-Cloud-Computing

    根据提供的文件信息,本文将对“如何在SOA及云计算环境中预防死锁”这一主题进行深入探讨,并结合《分布式服务导向架构中的死锁避免》这篇硕士论文中的相关内容,阐述死锁的基本概念、产生的原因以及在服务导向架构...

    Python库 | deadlock_cli-1.1.0-py3-none-any.whl

    `deadlock_cli-1.1.0-py3-none-any.whl` 是一个与Python相关的库,名为 `deadlock_cli` 的版本1.1.0的软件包。这个软件包是用Python 3编写的,并且是跨平台的,可以在支持Python 3的任何操作系统上运行。`.whl` 文件...

    mysql报错:Deadlock found when trying to get lock; try restarting transaction的解决方法

    [2017-02-10 13:12:06.678] [INFO] mysqlLog - update tbl_playerdata_error: { [Error: ER_LOCK_DEADLOCK: Deadlock found when trying to get lock; try restarting transaction] code: 'ER_LOCK_DEADLOCK', ...

    Deadlock Found(亲测可用).md

    Deadlock Found(亲测可用).md

    现代操作系统课件:Chapter6-Deadlock.ppt

    在Chapter 6 "Deadlock"的课件中,主要涵盖了以下几个关键知识点: 1. 资源(Resources) 资源是操作系统中允许单个进程在任何时刻使用的对象,包括CPU周期、内存空间、I/O设备以及数据库记录等。资源可以分为可...

Global site tag (gtag.js) - Google Analytics