Oops, sorry guys! I hit reply to the wrong message; this was supposed to go to R.E. off-line.
But, of course, a happy and prosperous new year to you all, as well! -Dan -----Original Message----- From: programming-boun...@jsoftware.com [mailto:programming-boun...@jsoftware.com] On Behalf Of Dan Bron Sent: Tuesday, January 03, 2012 3:17 PM To: 'Programming forum' Subject: Re: [Jprogramming] Asking "Are you still alive?" Thank you for the generous present! I notice it has my name in the lead :) I'll review it soon and send any notes I may have. Have a happy and prosperous new year! -Dan -----Original Message----- From: programming-boun...@jsoftware.com [mailto:programming-boun...@jsoftware.com] On Behalf Of Ian Clark Sent: Monday, January 02, 2012 1:52 PM To: Programming forum Subject: [Jprogramming] Asking "Are you still alive?" Please forgive these questions I post to the list to which I know the answer. Or rather: *an* answer. I learn a lot from others' responses. Even if it's "my way is best after all" -- that's a valuable thing to know. I have two separate J processes running (assume Linux / Darwin, though I'm keen on cross-platform solutions). They communicate by each writing a text file which is read by the other (keep-it-simple-stupid). Is there a neat, robust way of one process asking the other: "are you there?" or "are you still alive?" I'm au-fait with how the yellow-J works, all the solutions involving timer-driven duty-cycles, timeouts, and reading files written by the sister process, Or the files' timestamps, or permissions. But these all seem so clunky. I guess what I want is something that was so easy in the 1970s but is so awkward on today's machines: just reserve a pair of bits in absolute memory -- or a pair of pixels on the screen -- or some inessential system flags -- and play pat-a-cake with them. Once upon a time there was such a thing as "common memory". ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm