comp.lang.ada
 help / color / mirror / Atom feed
From: "Anh Vo" <anhvofrcaus@gmail.com>
Subject: Re: Designing Timers using Ada.Real_Time.Timing_Events package
Date: 26 Mar 2006 15:53:38 -0800
Date: 2006-03-26T15:53:38-08:00	[thread overview]
Message-ID: <1143417218.070618.302820@i39g2000cwa.googlegroups.com> (raw)
In-Reply-To: <3itd22hcekts5lsojdqjnn966bbvc8fckh@4ax.com>

>> Regarding deadlock in general, if a deadlock occurs in one task, should
>> other tasks continue to operate and the main program should not hang?
>
>      As I understand the terms, pretty much by definition, a deadlock
> must involve more than one task... And the main program, also by
> definition, could be that task. While there may be other cases, the
> simple definition for a deadlock is for two or more concurrent threads
> of control to be blocked on mutual resources:
>
>        get_A                                   get_B
>        get_B (block)                   get_A (block)   (deadlock)
>        release_B                               release_A
>        release_A                               release_B
>
>        A more real-world situation could have many levels of calls before
> encountering blocking possibilities.

Does it mean that as long as the main task is not involved in the
deadlock, the main program should operate, not hung?

AV




  parent reply	other threads:[~2006-03-26 23:53 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-03-25 20:03 Designing Timers using Ada.Real_Time.Timing_Events package Anh Vo
2006-03-25 20:58 ` Dmitry A. Kazakov
2006-03-26  5:39   ` Anh Vo
2006-03-26 12:58     ` Dmitry A. Kazakov
2006-03-26 16:18       ` Anh Vo
2006-03-26 18:22         ` Dmitry A. Kazakov
2006-03-26 19:43           ` Anh Vo
     [not found]             ` <3itd22hcekts5lsojdqjnn966bbvc8fckh@4ax.com>
2006-03-26 23:53               ` Anh Vo [this message]
     [not found]                 ` <0mae22lshe5nee8pt8h7seussloebv07g3@4ax.com>
2006-03-27  5:01                   ` Anh Vo
     [not found]                     ` <5vse22h4mc1och27s0nkbv986csi2rorki@4ax.com>
2006-03-28  0:07                       ` Anh Vo
2006-03-27  7:49             ` Dmitry A. Kazakov
2006-03-27 18:14               ` Dmitry A. Kazakov
2006-03-27 22:00                 ` Anh Vo
2006-03-28  7:51                   ` Dmitry A. Kazakov
2006-03-28 16:00                     ` Anh Vo
2006-03-26  7:59 ` Martin Krischik
2006-03-26 15:50   ` Anh Vo
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox