--- "Miller, Raul D" <[EMAIL PROTECTED]> wrote:

> Oleg Kobchenko wrote:
> > A single J instance is not re-enterable
> > from different threads simultaneously.
> 
> Sorry, I mis-spoke (presuming that the listed assumptions
> were correct.)
> 
> Change that to: delegate all callbacks to a single J thread?
> 
> [I'm still using a question mark, because I'm still
> not sure I understand where you're going with this.]

Invoking a single (main) thread is appropriate for
Notification from slave threads when the job is done.
But we are far from that. We cannot even initiate
several slave threads.

The idea is to be able to run several J code units
simultaneously in the same (OS) process (not different processes).
Such facility is threads.

Because J instance is not re-enterable from
different threads, as shown, we need different J
instances, one per thread.

To start a thread, we need a callback: different
callbacks (call addresses) for different thread-instances.

But cdcb returns the same address from different
J instances allocated in one process.

Good to hear what solutions are proposed.


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to