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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,31c8a4a333170c23 X-Google-Attributes: gid103376,public From: "Marin D. Condic" Subject: Re: Tasking Models Date: 2000/04/22 Message-ID: <3901DE50.29A62D26@quadruscorp.com>#1/1 X-Deja-AN: 614309820 Content-Transfer-Encoding: 7bit References: <38FD5045.A42B4406@quadruscorp.com> Organization: Quadrus Corporation X-Sender: "Marin D. Condic" (Unverified) X-Server-Date: 22 Apr 2000 14:18:08 GMT Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 Newsgroups: comp.lang.ada Date: 2000-04-22T14:18:08+00:00 List-Id: Marin D. Condic wrote: > In the past, when I've cared to find out about it, Ada compilers I've > run under various operating systems do not block on an I/O or other > sorts of OS calls. I know this is legal behavior. I don't know of any > reason why it would be *illegal* for the RTK to consider a task blocked > on an OS call. This would be desirable behavior under lots of And speaking of task blocking, OS blocking and timeslicing..... Can anybody tell me about the behavior of GNAT in these areas? I have attempted some GNAT/TCP/IP stuff under Win98 and the behavior when tasks are involved seems to be that the RTK does not recognize that a thread is blocked when a call is made to TCP/IP. (Other tasks starve). Is this the same behavior one could expect under WinNT? How about under various flavors of Unix? Is there some sort of pragma that can be set which would insist that the RTK use a timeslicing model? (Except for possible performance issues, this at least can get you around tasks that are blocked for I/O.) It might be interesting to take some of the current software I'm working with and run it through GNAT to see if that would solve some of our troubles. But before I go unhooking all the system dependencies for a new compiler, it would be nice to know about how the RTK handles these things. Maybe this is all answered in the Super Secret GNAT Documentation, but perhaps someone will be kind to the lazy and ignorant? :-) MDC -- ====================================================================== Marin David Condic - Quadrus Corporation - http://www.quadruscorp.com/ Send Replies To: m c o n d i c @ q u a d r u s c o r p . c o m Visit my web site at: http://www.mcondic.com/ "I'd trade it all for just a little more" -- Charles Montgomery Burns, [4F10] ======================================================================