comp.lang.ada
 help / color / mirror / Atom feed
From: balmacara9@aol.com (Balmacara9)
Subject: Re: Tasking question (not the same as ^^^)
Date: 1997/10/30
Date: 1997-10-30T00:00:00+00:00	[thread overview]
Message-ID: <19971030042001.XAA25759@ladder02.news.aol.com> (raw)
In-Reply-To: 61kipb$p28$1@reader1.reader.news.ozemail.net


>Subject: Tasking question (not the same as ^^^)
>From: paulvg@eelab.su.oz.au (Paul Van Gorp)
>Date: Fri, Oct 10, 1997 02:42 EDT
>Message-id: <61kipb$p28$1@reader1.reader.news.ozemail.net>
>
>I am having this strange problem with tasking, here is the scenario...
>
>task DO_STUFF is
>	entry do_stuff1(...);
>	entry do_stuff2(...);
>end DO_STUFF;
>
>task user is	-- interacts with DO_STUFF
>	entry input_entered(c: Character);	-- the body for this interacts
 with
>DO_STUFF
>end user;
>
>-- and the mail program has this loop...
>
>begin 
>
>...
>	loop
>		ch := Getch;	-- doesn't have to be Getch, could just be a
 read
>		user.input_entered(ch);
>	end loop
>...
>end ...;
>
>Now, It may be a rotten way to do it, but it works fine when there is no
>facility for a simple keyboard interface, the tasks all seem to not operate
>when input is being awaited from the keyboard.
>
>It seems to work fine when I hardcode input ( user.input_entered(...) ) in
>the
>main part of the program.
>
>Wondering if anyone might have a clue as to what the program might be...
>
>Thanks in advance..
>
>Paul
>
>
>
>
>
>
>
>
>
>

Your OS may be blocking your entire process when you call the Getch function or
 the Read function. I have dealt with serveral Unix compilers which did not use
 Posix/Native threads to implement tasking. Look in the appendix F of your
 compiler manual.




      parent reply	other threads:[~1997-10-30  0:00 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-10-10  0:00 Tasking question (not the same as ^^^) Paul Van Gorp
1997-10-10  0:00 ` Matthew Heaney
1997-10-10  0:00   ` Robert Dewar
1997-10-10  0:00 ` Stephen Leake
1997-10-11  0:00   ` Paul Van Gorp
1997-10-30  0:00 ` Balmacara9 [this message]
replies disabled

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