comp.lang.ada
 help / color / mirror / Atom feed
From: "Marin David Condic" <dont.bother.mcondic.auntie.spam@[acm.org>
Subject: Re: Complexity of protected objects
Date: Mon, 25 Feb 2002 11:45:50 -0500
Date: 2002-02-25T16:45:51+00:00	[thread overview]
Message-ID: <a5dpnv$p6n$1@nh.pace.co.uk> (raw)
In-Reply-To: a5dont$dh9$1@helle.btinternet.com

"tony gair" <tonygair@nespamtome.btinternet.com> wrote in message
news:a5dont$dh9$1@helle.btinternet.com...
>
> J Barnes recommends that  protected objects be as small as possible, so
> being a little
> bloody minded I want to see what the limits are for protected objects ,

The usual reason for this is that since a protected object is going to
create what amounts to a "critical section" you don't want to spend any more
time in one than you have to. One thread running through a long protected
object's code is going to block out other threads from accessing it - hence
the "keep it short" advice.

I don't know of any natural limitations that would make it A Bad Thing to
have a very large protected object. AFAIK, its only a concern for how long
it will block execution of other tasks that limit size. The rest would be
whatever limitations your compiler may impose.

MDC
--
Marin David Condic
Senior Software Engineer
Pace Micro Technology Americas    www.pacemicro.com
Enabling the digital revolution
e-Mail:    marin.condic@pacemicro.com
Web:      http://www.mcondic.com/





  reply	other threads:[~2002-02-25 16:45 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 [this message]
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
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