June Kim wrote:
> The part, "in a separate thread or task"  from User Manual read like I
> can achieve some sort of concurrency. What does thread or task exactly
> mean here?

They have their normal meanings. You can run two separate J tasks at the
same time, but communication between them has to be programmed, as Dan
indicates below.

>> You do have some options, though:  You could write (e.g.) a VB
>> application that does GUI in one thread and interacts with J (via COM,
>> DLL calls, etc) in another.  Or you could have several instances of J
>> running, communicating through sockets, (named) pipes, (mapped) files
>> or a combination thereof.

>> What, exactly, are your goals?
> 
> Suppose you wanted to add some feature to the plain Labs.  While you
> are on one section, you can see a progress bar proceeding with the
> remaining time for the section constantly decreasing and finally
> advancing to the next with some message when the time's up. You could
> run J sentences in the ijx window and you don't want the progress bar
> to be unresponsive.
> 
> I think using sys_timer could be a solution, like in javascript.
> However, it may get quite complicated and keeping the windows
> responsive is very hard.

Labs are not good examples since they are intended to be run
interactively in the IDE. Stepping through a lab is just the same as
entering the sentences from the keyboard, and J will not run two
sentences at the same time.
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to