From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=0.2 required=5.0 tests=BAYES_00,INVALID_MSGID, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,5d5bff08777921a2 X-Google-Attributes: gid103376,public From: Tom Moran Subject: Re: returning a value from tasking?? Date: 1996/12/01 Message-ID: <32A20FF0.1409@bix.com>#1/1 X-Deja-AN: 201772505 references: <32A080A9.7BCA@access.hky.com> content-type: text/plain; charset=us-ascii organization: InterNex Information Services 1-800-595-3333 mime-version: 1.0 reply-to: tmoran@bix.com newsgroups: comp.lang.ada x-mailer: Mozilla 3.0Gold (Win95; I) Date: 1996-12-01T00:00:00+00:00 List-Id: >get a character or return if none is input within 3 seconds This is very much an OS dependent problem, and I don't know the OS calls available to you. There ought to be one that accepts a timeout and does just what you ask. If not, you may have to resort to getting one OS thread to do a read, while another does a timeout, and whichever finishes first kills the other. That is a substantially trickier, and also implementation dependent, problem.