I think I've mentioned this before, but here's a succinct demonstration of
behavior that differs between J6 and J7.  As many of you are probably aware,
I'm fond of spinning off independent J processes to take advantage of the
multiple cores on my PC.  However, the output from the forked process
appears in the forking session only in J7, as seen here.

NB. in J6:
   '(0 0 $ 1!:2&2) (6!:0) i.0' fwrite flnm=. 'testSpinOff.ijs'
25
   JEXE=: '"c:/program files/j602/bin/j.exe" -jijx '
   JEXE,flnm
"c:/program files/j602/bin/j.exe" -jijx testSpinOff.ijs
   fork JEXE,flnm
   JVERSION
Installer: j602a_win.exe
Engine: j602/2008-03-03/16:45
Library: 6.02.051

NB. However, in J7:
   '(0 0 $ 1!:2&2) (6!:0) i.0' fwrite flnm=. 'testSpinOff.ijs'
25
   JEXE=: '"c:/program files/j701/bin/jconsole.exe" '
   JEXE,flnm
"c:/program files/j701/bin/jconsole.exe" testSpinOff.ijs
   fork JEXE,flnm
   2011 5 11 23 49 19.04
NB. The result of the forked process shows up in the parent session.
   JVERSION
Engine: j701/2011-01-10/11:25
Library: 7.01.04
Platform: Win 32
Installer: j701a_win.exe
InstallPath: c:/program files/j701

Anyone know why this is?  It seems like a bug.

Regards,

Devon
-- 
Devon McCormick, CFA
^me^ at acm.
org is my
preferred e-mail
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to