From: "fabio de francesco" <fmdf@tiscali.it>
Subject: Re: Ada.Text_IO and protected objects (Was: [newbie question] tasks and protected types)
Date: 29 Apr 2005 14:57:21 -0700
Date: 2005-04-29T14:57:21-07:00 [thread overview]
Message-ID: <1114811841.250745.71870@o13g2000cwo.googlegroups.com> (raw)
In-Reply-To: <d4tftf$m7i$1@kda-news.kongsberg.com>
Egil H. Høvik wrote:
> "Jacob Sparre Andersen" <sparre@nbi.dk> wrote in message
> news:m2acnhn43i.fsf_-_@hugin.crs4.it...
> > Adrien Plisson wrote:
> > > Jacob Sparre Andersen wrote:
> >
> > > > If calls to Ada.Text_IO _are_ potentially blocking operations,
> > > > that means that one has to move the calls to a task.
> > >
>
> RM 9.5.1(18):
> Certain language-defined subprograms are potentially blocking. In
> particular, the subprograms of the language-defined input-output
> packages that manipulate files (implicitly or explicitly) are
potentially
> blocking.
>
>
> >
> > I thought entries of protected objects also were "protected
actions".
> > Unfortunately RM 9.5.1 isn't so clear on that question, that I am
sure
> > if that is actually the case or not.
> >
>
> RM 9.5.3(8):
> ... For a call on an entry of a protected object, a new protected
action
> is started on the object (see 9.5.1).
>
>
> ~egilhh
Thank you all for every insight on the subject. Anyway I don't yet
understand whether you mean that potentially "blocking" subprograms
should be put in a protected object or inversely they shouldn't.
In this thread I've been suggested to put the IO in a protected object.
Is it needed to do so?
What do you mean by "blocking"? I suppose you mean that OS can put that
process in a wait queue and switch to a new one, may be because the
first is waiting for some event like device IO. Is it correct?
Ciao,
fabio de francesco
next prev parent reply other threads:[~2005-04-29 21:57 UTC|newest]
Thread overview: 33+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-04-29 4:04 [newbie question] tasks and protected types fabio de francesco
2005-04-29 7:25 ` tmoran
2005-04-29 9:43 ` Jacob Sparre Andersen
2005-04-29 10:34 ` Alex R. Mosteo
2005-04-29 11:23 ` Jacob Sparre Andersen
2005-04-29 12:18 ` Adrien Plisson
2005-04-29 12:45 ` Ada.Text_IO and protected objects (Was: [newbie question] tasks and protected types) Jacob Sparre Andersen
2005-04-29 13:22 ` Poul-Erik Andreasen
2005-04-29 14:26 ` Egil H. H�vik
2005-04-29 20:28 ` Jacob Sparre Andersen
2005-04-29 20:39 ` Randy Brukardt
2005-04-29 21:23 ` Lionel Draghi
2005-04-29 22:11 ` fabio de francesco
2005-04-30 3:45 ` Jeffrey Carter
2005-04-30 7:21 ` Lionel Draghi
2005-05-02 8:11 ` Jean-Pierre Rosen
2005-04-30 12:47 ` Ada.Text_IO and protected objects Stephen Leake
2005-04-29 21:57 ` fabio de francesco [this message]
2005-04-30 9:07 ` Jacob Sparre Andersen
2005-04-30 10:21 ` Dmitry A. Kazakov
2005-05-02 10:41 ` fabio de francesco
2005-05-02 14:10 ` Jacob Sparre Andersen
2005-05-02 16:29 ` fabio de francesco
2005-04-29 15:23 ` Ada.Text_IO and protected objects (Was: [newbie question] tasks and protected types) Björn Lundin
2005-04-29 12:54 ` [newbie question] tasks and protected types Alex R. Mosteo
2005-04-29 10:47 ` fabio de francesco
2005-04-29 11:33 ` Jacob Sparre Andersen
2005-04-29 12:55 ` Alex R. Mosteo
2005-04-29 14:06 ` Egil H. H�vik
2005-04-29 14:12 ` Egil H. H�vik
2005-04-29 16:23 ` Robert A Duff
2005-04-29 20:19 ` Jacob Sparre Andersen
2005-04-30 11:58 ` Simon Wright
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox