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.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,126ce244c524526b X-Google-Attributes: gid103376,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!postnews.google.com!d55g2000hsg.googlegroups.com!not-for-mail From: shaunpatterson@gmail.com Newsgroups: comp.lang.ada Subject: Re: Tasking issues Date: Sun, 12 Aug 2007 10:12:09 -0700 Organization: http://groups.google.com Message-ID: <1186938729.414350.288620@d55g2000hsg.googlegroups.com> References: <1186851804.567302.223160@q4g2000prc.googlegroups.com> NNTP-Posting-Host: 74.234.194.75 Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" X-Trace: posting.google.com 1186938729 6003 127.0.0.1 (12 Aug 2007 17:12:09 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Sun, 12 Aug 2007 17:12:09 +0000 (UTC) In-Reply-To: User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.0.04506; InfoPath.1),gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: d55g2000hsg.googlegroups.com; posting-host=74.234.194.75; posting-account=ps2QrAMAAAA6_jCuRt2JEIpn5Otqf_w0 Xref: g2news2.google.com comp.lang.ada:1411 Date: 2007-08-12T10:12:09-07:00 List-Id: Well, the two tasks are independent. They don't share data so I was hoping I didn't have to communicate between the two threads. I just wanted the two threads to run quitely in the background. However, one thread is reading from sockets... and that thread is preventing the other task from running. I'd have to check, but I was SURE I set the GNAT Sockets to non-blocking... which (I assume) would allow the other thread to run. The socket thread is using streams. It get held up at a Integer'Input (Stream) line. If the sockets were non-blocking the other task should be able to run right? Another option I guess would be to poll the stream and see how much data is in the stream. If there's not enough delay the task? Is it possible to view how much data is there? I hope I'm making sense. Anyway - I'll double check that my sockets are non-blocking tomorrow at work Thanks -- Shaun