I guess this is os specific. You may try CreateEvent window api to create a
mutex, and poll for it using WaitForSingleObject api. Of course the client
also needs to co-operate.

Сбт, 30 Апр 2011, Ian Clark писал(а):
> Suppose I have two J tasks A and B sharing a mapped file F. How can B
> best get to know that A has just changed F?
> 
> AFAICS, B needs to execute a duty-cycle inspecting the directory
> timestamp of F using 1!:0 (which may delay for up to a second), or
> alternatively watch for a checksum to change on F's contents (if it's
> large).
> 
> Before I do, is there some JAL facility I've overlooked? Ideally, the
> very act of A changing F should send a message to B -- a system event,
> say, that can run a callback.
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm

-- 
regards,
====================================================
GPG key 1024D/4434BAB3 2008-08-24
gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to