comp.lang.ada
 help / color / mirror / Atom feed
From: Darren New <dnew@san.rr.com>
Subject: Re: rendez-vous underlying mechanism
Date: Thu, 11 Apr 2002 16:01:51 GMT
Date: 2002-04-11T16:01:51+00:00	[thread overview]
Message-ID: <3CB5B3B1.9442DA54@san.rr.com> (raw)
In-Reply-To: 7vr8lmiha5.fsf@vlinux.voxelvision.no

Ole-Hjalmar Kristensen wrote:
> Agreed, but it would be reasonable to see a language standard specify
> that blocking a task would not block the entire program. It's a pity
> it's not covered in the Ada standard.

I think you'd get into all kinds of things about what "blocking a task"
means. For example, for a while I worked on one system where requesting
to allocate memory when there wasn't any swap space left got you swapped
out until some other program freed up memory. There's no way to not
block all the tasks if your process isn't in core. And it's just a
memory allocation doing this, not even any user-visible I/O.
 
If a task calls "suspend my processes until the operator mounts the
tape", it's hard to guess whether you want the other threads running or
not.

In UNIX-land it can be pretty easy to guess. Making such guesses
portable could be problematic. Providing a list of what OS calls will
block all threads is probably about as close as you can come, but that
wouldn't have solved the original problem, since the I/O that blocked
your code would have just been on that list.

-- 
Darren New 
San Diego, CA, USA (PST). Cryptokeys on demand.
      Remember, drive defensively if you drink.



  reply	other threads:[~2002-04-11 16:01 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-03-25 13:48 rendez-vous underlying mechanism Bozo
2002-03-25 20:09 ` Marin David Condic
2002-03-26  1:44 ` Adrian Hoe
2002-03-26  1:16   ` Jeffrey Creem
2002-03-26  2:05   ` Adrian Hoe
2002-03-26  2:16     ` Jeffrey Creem
2002-03-26  6:04   ` Simon Wright
2002-03-26 10:17     ` Adrian Hoe
2002-03-26  9:31       ` tgingold
2002-03-26 10:40       ` David C. Hoos, Sr.
2002-03-27  1:42       ` Adrian Hoe
     [not found]     ` <a8olf7$enj$3@nntp9.atl.mindspring.net>
2002-04-07  6:44       ` Pascal Obry
2002-04-08  7:48       ` Jean-Pierre Rosen
2002-03-26 10:58 ` Bozo
2002-03-26 14:10   ` Marin David Condic
2002-03-26 14:57   ` Kevin Cline
2002-03-28  5:20     ` Richard Riehle
2002-03-28 15:44       ` Marin David Condic
2002-04-08 17:05       ` Kevin Cline
2002-04-10  7:49         ` Ole-Hjalmar Kristensen
2002-04-10 13:39         ` Pat Rogers
2002-04-10 17:19           ` Kevin Cline
2002-04-10 17:23             ` Pat Rogers
2002-04-11 11:52               ` Ole-Hjalmar Kristensen
2002-04-11 16:01                 ` Darren New [this message]
2002-04-10 17:58             ` Marin David Condic
replies disabled

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