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.7 required=5.0 tests=BAYES_00,MSGID_RANDY autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,9f5633938c224117 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-02-02 11:40:13 PST Path: supernews.google.com!sn-xit-02!supernews.com!nntp-relay.ihug.net!ihug.co.nz!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!nntp2.deja.com!nnrp1.deja.com!not-for-mail From: Ted Dennison Newsgroups: comp.lang.ada Subject: Re: Using Xt intrinsics with Ada? Date: Fri, 02 Feb 2001 19:30:36 GMT Organization: Deja.com Message-ID: <95f1ss$gal$1@nnrp1.deja.com> References: <3A78357A.2BD8C0B1@avitech.de> <3A7A84C3.2486A6CF@avitech.de> <95ei68$m9$1@nnrp1.deja.com> <3A7AD594.EAA4A6C6@avitech.de> NNTP-Posting-Host: 204.48.27.130 X-Article-Creation-Date: Fri Feb 02 19:30:36 2001 GMT X-Http-User-Agent: Mozilla/5.0 (Windows; U; WinNT4.0; en-US; 0.7) Gecko/20010109 X-Http-Proxy: 1.0 x52.deja.com:80 (Squid/1.1.22) for client 204.48.27.130 X-MyDeja-Info: XMYDJUIDtedennison Xref: supernews.google.com comp.lang.ada:4872 Date: 2001-02-02T19:30:36+00:00 List-Id: In article <3A7AD594.EAA4A6C6@avitech.de>, Juergen Fischer wrote: > Sorry about that, I am only looking for a solution and it was not my > intention to polemize against Ada. I wasn't offended. Anyone who uses Ada in a heavily C domain like GUI work needs a much thicker skin than that. I was just advocating removing a gaudy variable. > > replace your Ada "main" with a C "main", and see what happens. I'll > > bet you a virtual beer that you get the exact same behavior. :-) > > I have reduced the Ada "main" to the start of the XtAppMainLoop. With > all other tasks switched off there is no CPU load (same behaviour as > in a C program). With all other > tasks switched on but XtAppMainLoop not started the process does not > CPU, consume either. Only the combination of XtAppMainLoop and the > other application tasks leads to CPU load although the application, > after initialization, is in a wait state. Ahhh, you've already done that then. It looks like I'm going to end up owing you that virtual beer. :-( > I compiled the Ada Sources with ObjectAda 7.1.2. The OS is HP_UX > 10.20. I'm not familiar with that compiler on that platform. It might be worth finding out what OS mechanisms it uses to accomplish tasking (since you said elsewhere it isn't using OS threads). There ought to be some clues to that in your compiler docs. -- T.E.D. http://www.telepath.com/~dennison/Ted/TED.html Sent via Deja.com http://www.deja.com/