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:53:06 PST Path: supernews.google.com!sn-xit-02!supernews.com!isdnet!newsfeeds.belnet.be!news.belnet.be!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!blackbush.xlink.net!kilbeggan.xlink.net!not-for-mail From: Juergen Fischer Newsgroups: comp.lang.ada Subject: Re: Using Xt intrinsics with Ada? Date: Fri, 02 Feb 2001 16:48:04 +0100 Organization: Avitech - Aviation Management Technologies GmbH Message-ID: <3A7AD6B4.82E0AA27@avitech.de> References: <3A78357A.2BD8C0B1@avitech.de> <3A7A84C3.2486A6CF@avitech.de> NNTP-Posting-Host: fw1.avitech.de Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------E52FE1F1C91DC1021517ABAF" X-Trace: kilbeggan.xlink.net 981128883 17745 194.121.221.60 (2 Feb 2001 15:48:03 GMT) X-Complaints-To: news-support@xlink.net NNTP-Posting-Date: 2 Feb 2001 15:48:03 GMT To: Stephen Leake X-Mailer: Mozilla 4.75 [en] (WinNT; U) X-Accept-Language: en Xref: supernews.google.com comp.lang.ada:4861 Date: 2001-02-02T15:48:03+00:00 List-Id: This is a multi-part message in MIME format. --------------E52FE1F1C91DC1021517ABAF Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Hi, Stephen Leake wrote: > Juergen Fischer writes: > > > Hi, > > > > the problem is that we don't have the runtime that blocks on the task > > level but only on the process level. > > Therefore we have to use non blocking sockets. The XtAppMainLoop does > > really poll, > > 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. > > Ok, now you realize that you _cannot_ avoid polling, because your OS > does not provide task-level blocking sockets. Bringing in X windows > stuff cannot change that. I had realized this before, but from C applications I know that socket polling by means of XtAppMainLoop costs less CPU load than a directly coded polling solution. > > > You can either get threads and sockets libraries that provide this > functionality, or convert your program to a multi-process one, > possibly using Ada partitions. Which OS and compiler are you using? HP_UX 10.20 and Aonix ObjectAda 7.1.2 Juergen > > > Or perhaps you can design an acceptable polling solution; it appears > that you hoped the XtAppMainLoop would be such a thing. You are more > likely to be successful if you code the polling directly. Perhaps you > could use the source for XtAppMainLoop as a guide. > > -- > -- Stephe --------------E52FE1F1C91DC1021517ABAF Content-Type: text/x-vcard; charset=us-ascii; name="juergen.fischer.vcf" Content-Transfer-Encoding: 7bit Content-Description: Card for Juergen Fischer Content-Disposition: attachment; filename="juergen.fischer.vcf" begin:vcard n:Fischer;Juergen tel;pager:+49.(0)168.6957035 tel;cell:+49.(0)170.1630414 tel;fax:+49.(0)7541.282-299 tel;work:+49.(0)7541.282-387 x-mozilla-html:TRUE url:http://www.avitech.de org:Aviation Management Technologies GmbH;Software Development adr:;;Bahnhofplatz 1;Friedrichshafen;Baden-Wuerttemberg;88004;Germany version:2.1 email;internet:Juergen.Fischer@avitech.de title:Dr. rer. nat. Dipl.-Math. x-mozilla-cpt:;-25792 fn:Fischer, Juergen end:vcard --------------E52FE1F1C91DC1021517ABAF--