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=-1.9 required=5.0 tests=BAYES_00 autolearn=ham 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!news2.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!wns13feed!worldnet.att.net!attbi_s21.POSTED!53ab2750!not-for-mail From: "Jeffrey R. Carter" User-Agent: Thunderbird 1.5.0.12 (Windows/20070509) MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Tasking issues References: <1186851804.567302.223160@q4g2000prc.googlegroups.com> <1186938729.414350.288620@d55g2000hsg.googlegroups.com> In-Reply-To: <1186938729.414350.288620@d55g2000hsg.googlegroups.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Message-ID: NNTP-Posting-Host: 12.201.97.213 X-Complaints-To: abuse@mchsi.com X-Trace: attbi_s21 1186956626 12.201.97.213 (Sun, 12 Aug 2007 22:10:26 GMT) NNTP-Posting-Date: Sun, 12 Aug 2007 22:10:26 GMT Organization: AT&T ASP.att.net Date: Sun, 12 Aug 2007 22:10:26 GMT Xref: g2news2.google.com comp.lang.ada:1418 Date: 2007-08-12T22:10:26+00:00 List-Id: shaunpatterson@gmail.com wrote: > > 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. For many implementations, setting the sockets to non-blocking is the way to have the task that's reading from the socket monopolize the processor, unless it contains a delay. Setting the sockets to blocking is usually the way to have the task give up the processor. -- Jeff Carter "Sir Lancelot saves Sir Gallahad from almost certain temptation." Monty Python & the Holy Grail 69