Thanks for answer. Of course. It seems I misunderstand it before. And I need lock without timing.
It is possible to catch somehow that second process found some critical area locked?. For example: if (is not lock){ lock
}else{
behave else ( ..otherFunc())
}
Because if I use lock without timing, other process will sleep on lock like classical mutex, yes, your answer is correct, thanks, but I would like to know even more, if it is possible to externally check if lock is locked without falling asleep with process that will use LOCK +(^A,^B,^C), please?
USER > if (number\1 = +number) { w "number and integer" } else { w "not number and not integer" }
will output that it is "number and integer", because number\1 will turn string "21d20" to "21" as a result. Moreover +number will result from "21d20" to "21" ... and will tell that really 21 equals 21 ... but "21d20" is not number
go to post
Understand, thank you.
go to post
Ok, I understand now. Thanks
go to post
Thanks for answer. Of course. It seems I misunderstand it before. And I need lock without timing.
It is possible to catch somehow that second process found some critical area locked?. For example:
if (is not lock){
lock
}else{
behave else ( ..otherFunc())
}
Because if I use lock without timing, other process will sleep on lock like classical mutex, yes, your answer is correct, thanks, but I would like to know even more, if it is possible to externally check if lock is locked without falling asleep with process that will use LOCK +(^A,^B,^C), please?
go to post
Yes ,true. This is more precise. Thanks
go to post
Hmm, I see. Yes, thanks for explanation.
go to post
Thanks! It works.
go to post
Are you sure that this will work?
USER > set number = "21d20"
USER > if (number\1 = +number) { w "number and integer" } else { w "not number and not integer" }
will output that it is "number and integer", because number\1 will turn string "21d20" to "21" as a result.
Moreover +number will result from "21d20" to "21" ... and will tell that really 21 equals 21 ... but "21d20" is not number