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-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,9f5633938c224117 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-02-02 07:10:10 PST Path: supernews.google.com!sn-xit-02!sn-xit-01!supernews.com!newsfeed.stanford.edu!xfer10.netnews.com!netnews.com!cpk-news-hub1.bbnplanet.com!news.gtei.net!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 15:02:39 GMT Organization: Deja.com Message-ID: <95ei68$m9$1@nnrp1.deja.com> References: <3A78357A.2BD8C0B1@avitech.de> <3A7A84C3.2486A6CF@avitech.de> NNTP-Posting-Host: 204.48.27.130 X-Article-Creation-Date: Fri Feb 02 15:02:39 2001 GMT X-Http-User-Agent: Mozilla/5.0 (Windows; U; WinNT4.0; en-US; 0.7) Gecko/20010109 X-Http-Proxy: 1.0 x56.deja.com:80 (Squid/1.1.22) for client 204.48.27.130 X-MyDeja-Info: XMYDJUIDtedennison Xref: supernews.google.com comp.lang.ada:4857 Date: 2001-02-02T15:02:39+00:00 List-Id: In article <3A7A84C3.2486A6CF@avitech.de>, Juergen Fischer wrote: > but from other C programs we know that it doesn't take much CPU load. > So we suppose that the CPU load is caused by > Ada tasking in combination with the XtAppMainLoop. That doesn't make much sense to me. Furthermore, it sounds a lot the the "it must be Ada's fault" knee-jerk reactions I always get when I mention Ada in the context of a problem to OS library people. But in any event, it should be trivial to check this assumption. Just 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. :-) > Who has already used XtAppMainLoop within an Ada program? I have. Did it on the old SunOS using a VADS compiler, and once on the Harris Nighthawk. The only real problem I can remember was that we had to make sure that only the XtAppMainLoop task made any X calls (and I think there are X bindings available that remove that restriction). -- T.E.D. http://www.telepath.com/~dennison/Ted/TED.html Sent via Deja.com http://www.deja.com/