comp.lang.ada
 help / color / mirror / Atom feed
From: dewar@gnat.com (Robert Dewar)
Subject: Re: Complexity of protected objects
Date: 2 Mar 2002 16:32:02 -0800
Date: 2002-03-03T00:32:03+00:00	[thread overview]
Message-ID: <5ee5b646.0203021632.60ce6c7f@posting.google.com> (raw)
In-Reply-To: 3C7A75F2.30503@worldnet.att.net

Jim Rogers <jimmaureenrogers@worldnet.att.net> wrote in message news:<3C7A75F2.30503@worldnet.att.net>...
> Using a protected object to read and write files is a 
> clear violation of the intention and recommendations for 
> proctected objects. Protected objects should be 
> non-blocking. I/O is always potentially blocking.

Please prove this *from the RM*. Potentially blocking is
a technical term defined in the RM, it does NOT necessarily
correspond to the informal notion of some action in the
operating system which blocks execution and causes task
switching, so whether I/O is forbidden is something you
will have to check with the vendor of the compiler you
are using, and will depend on what kind of I/O you are
doing and how.

> You even have some potential blocking issues when storing 
> an AVL tree. If you dynamically allocate your AVL tree 
> nodes you have the possibility of running out of memory. 
> This will either result in a blocking situation, or a 
> potential loss of data in the AVL tree.

Again, I don't see your point, there is nothing at all to
stop a protected subprogram from doing dynamic allocation.
 
> 
> tony gair wrote:
> > do things protected objects were not designed for (is 
> > this an oxymoron?).


An oxymoron is the juxtaposition of contrasting terms for
literary effect, e.g. "deafening silence". I see nothing
literary here,

yes, yes, I know, the term has been so badly misused, that
some dictionaries by now recognize the degradation of this
beautiful word to simply mean contradiction in terms :-)



  parent reply	other threads:[~2002-03-03  0:32 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-02-25 16:28 Complexity of protected objects tony gair
2002-02-25 16:45 ` Marin David Condic
2002-03-03  1:11   ` Robert Dewar
2002-03-03  4:13     ` Dale Stanbrough
2002-03-03 19:50       ` Robert Dewar
2002-02-25 17:35 ` Jim Rogers
2002-02-28 22:09   ` Nick Roberts
2002-02-28 23:32     ` Dale Stanbrough
2002-03-01  5:45       ` Jim Rogers
2002-03-03  0:59       ` Robert Dewar
2002-03-01 17:42     ` Jeffrey Carter
2002-03-03  1:06       ` Robert Dewar
2002-03-03  6:53         ` Jeffrey Carter
2002-03-03 19:36           ` Robert Dewar
2002-03-04 20:04             ` Jeffrey Carter
2002-03-03  0:54     ` Robert Dewar
2002-03-03  0:32   ` Robert Dewar [this message]
2002-02-25 22:01 ` Ted Dennison
2002-03-03  1:08   ` Robert Dewar
2002-03-04  9:33     ` Dmitry A. Kazakov
2002-03-04 16:44       ` Ted Dennison
replies disabled

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