> Questions:
> 1. Who would be locking the ^SC( node. I am not using scheduling in
> my system currently.
I have no idea.
>
> 2. Is my syntax correct?
It looks fine to me.
>
> 3. Is there a way to see who has a record locked?
It's system dependent. I don't know how it's done on GT.M
>
> 4. does the SET command respect the LOCK status? I.e. If I can set
> and manipulate the globals, then does that automatically mean that
> they are not in a locked state? Because I can set these nodes. So
> why can't I lock them?
Locks a purely advisory in MUMPS. I'd love to have mandatory locks,
but the language designers obviously thought differently.
> Good point. Thanks. I'll change the code.
>
> Kevin
>
> On Jan 7, 12:10 am, chuck5566 <chuck5...@gmail.com> wrote:
>> Try using a time out on the lock set, something like .LOCK
>> +^SC(TMGIEN):1, maybe even .LOCK +^SC(TMGIEN):0
>>
>> In fact, without the timeout, if "someone" else has already locked
>> the
>> node, wouldn't this code just sit there until the node is unlocked?
>>
>> On Jan 6, 2009, at 6:26 PM, kdt...@gmail.com wrote:
>>
>
Using a timeout is required by the SAC, too. I should have mentioned
that.
> So are you saying that even if another process locks a node, then I
> can still write to that node? So locking has no "teeth" so to speak?
>
> So then have a working lock system depends on each process respecting
> the lock system, i.e. checking with a lock command before writing?
>
> Interesting...
>
> Kevin
Yes.