Ian - a good place to study j use of dylib in Darwin would be in ~/addons/data/jmf.ijs Maybe you can find happiness there.
Meanwhile, I'm a little unclear on what you are trying to do. I assume you have a continuously available j task that picks up things to do from some queue - but you don't want it to be in a dead loop checking the queue. I run a task like that in my Linux server and it has the lines: while. * 6!:3 ] 1 do. if. (work to do) do. massage some data (actually quite a lot... but sporadic) end. end. This task runs as a #! jconsole shell and I just looked to see that it has been running for 100 days and has accumulated 20 minutes and 15 seconds of CPU time (on a 400 Mhz pentium - so pretty small overhead). Of course, the CPU usage is dependent on the work that gets done - but since (as you pointed out in a different message) j is single threaded, this seems to me to be a way to approach the kind of thing you seem to be describing. On 2012/01/05 09:54 , Ian Clark wrote: > Thanks, David. > > But this uses 'dll'. AFAIK there's no comparable way of calling dylibs > in Darwin. > > On Thu, Jan 5, 2012 at 5:44 PM, David Mitchell<davidmitch...@att.net> wrote: >> Here is a version that works with J602 and J701 jconsole. It does not work >> with >> jhs or jgtk. I have not tested it extensively and it may have side effects >> or >> bugs that I haven't found yet. >> >> http://www.jsoftware.com/jwiki/Scripts/WindowsTimer >> >> On 1/5/2012 8:27, Ian Clark wrote: >>> How do I get a timer in j701 jhs (or jconsole)? >>> >>> I've been assuming wd (11!:0) doesn't work at all in j701 (in j602 >>> you'd do: 11!:0 'timer 3' for a callback in 3 secs). >>> >>> BTW J701 help (http://www.jsoftware.com/docs/help701/dictionary/dx011.htm) >>> still refers to 11!:0 but I assume that's just because it's been >>> overlooked...? >>> ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm