comp.lang.ada
 help / color / mirror / Atom feed
From: Juergen Fischer <juergen.fischer@avitech.de>
To: Stephen Leake <stephen.a.leake.1@gsfc.nasa.gov>
Subject: Re: Using Xt intrinsics with Ada?
Date: Fri, 02 Feb 2001 16:48:04 +0100
Date: 2001-02-02T15:48:03+00:00	[thread overview]
Message-ID: <3A7AD6B4.82E0AA27@avitech.de> (raw)
In-Reply-To: u66itdszm.fsf@gsfc.nasa.gov

[-- Attachment #1: Type: text/plain, Size: 1366 bytes --]

Hi,

Stephen Leake wrote:

> Juergen Fischer <juergen.fischer@avitech.de> 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

[-- Attachment #2: Card for Juergen Fischer --]
[-- Type: text/x-vcard, Size: 462 bytes --]

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

  reply	other threads:[~2001-02-02 15:48 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-01-31 15:55 Using Xt intrinsics with Ada? Jürgen Grigat
2001-01-31 18:14 ` Stephen Leake
2001-02-02  9:58   ` Juergen Fischer
2001-02-02 12:00     ` Jeff Creem
2001-02-02 15:02     ` Ted Dennison
2001-02-02 15:43       ` Juergen Fischer
2001-02-02 19:30         ` Ted Dennison
2001-02-02 15:06     ` Stephen Leake
2001-02-02 15:48       ` Juergen Fischer [this message]
2001-02-05 15:06         ` Stephen Leake
2001-02-02 15:21     ` Robert Dewar
2001-01-31 19:19 ` Ted Dennison
2001-01-31 21:07   ` Ted Dennison
2001-01-31 21:40     ` Mario Klebsch
2001-02-02 16:26       ` Juergen Fischer
2001-01-31 19:42 ` Kevin Kronmiller
2001-02-01 11:55 ` Tarjei T. Jensen
2001-02-02 16:08 ` Des Walker
2001-02-02 16:40   ` Juergen Fischer
2001-02-03 14:37     ` Simon Wright
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox