Syntactic Confectionery Delight | |
PerlMonks |
Re: singleton lock not reliableby choroba (Cardinal) |
on Jun 23, 2021 at 18:38 UTC ( [id://11134207]=note: print w/replies, xml ) | Need Help?? |
Of course you can see two instances in ps output. One instance holds the lock and sleeps, the other one has just started and hasn't yet tried to obtain the lock.
map{substr$_->[0],$_->[1]||0,1}[\*||{},3],[[]],[ref qr-1,-,-1],[{}],[sub{}^*ARGV,3]
In Section
Seekers of Perl Wisdom
|
|