I think polling is OK. On modern computers polling sdsocket with 0.1s or 0.01s interval should produce no human noticeable delay. ymmv.

Dan Bron wrote:
What is the best mechanism for sending aynchronous external events to the J
session manager in the Linux world?

In Windows, DDE has been decomitted, but I can still use sockets.  When I
get a new socket event,  socket_handler  is called.  Is this also true in
Linux? Or must I poll?
The problem with polling is:

   (A)  The target of this application is J developers (who will be using
the session manager for their own purposes). So I can't block, pause
         or slow (for a human-appreciable amount of time) the IJX window
or interfere with other running programs. So I can't poll too frequently.

   (B)  The effect of the event is GUI and should be noticeable immediately
          (again, in human terms), so I can't pool too infrequently.

What are my options?  Can I intercept SIGs in the J session manager? I
looked into jbreak, but it looks like that's treated as a special case in
the binary, so I can't leverage the mechanism.

-Dan


--
regards,
bill
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to