comp.lang.ada
 help / color / mirror / Atom feed
From: dewar@merv.cs.nyu.edu (Robert Dewar)
Subject: Re: returning a value from tasking??
Date: 1996/12/01
Date: 1996-12-01T00:00:00+00:00	[thread overview]
Message-ID: <dewar.849448737@merv> (raw)
In-Reply-To: 32A080A9.7BCA@access.hky.com


Randy asks how to read a character within three seconds, or quit the
attempt. 

Obviously we should not do his assignment for him, but the general
advice in this situation is to make sure you understand the tools
you are using. In this case, if you are using tasking, it is not
good enough to piece together a vague approximation based on things
people have showed you. You need to first assemble a reasonably 
complete knowledge of how tasking works from an appropriate text
book. In this case obviously the solution is a timed entry call
followed by a conditional abort, but you need to know what these
are to use them. if you were using Ada 95 rather than the
obsolescent Ada 83, you could use asyncrhonous transfer of
control to achieve the conditional abort.





      parent reply	other threads:[~1996-12-01  0:00 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-11-30  0:00 returning a value from tasking?? Randy Kosarik
1996-12-01  0:00 ` Tom Moran
1996-12-01  0:00 ` Robert Dewar [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