Re: spin lock



Elizabeth D Rather wrote:
Krishna Myneni wrote:
...
The only concern I have is to avoid the situation where the signal
handler never
gets the lock.

That's called a bug, dear ;-) We all like to avoid those.

Cheers,
Elizabeth


It would certainly be poor design, at the least. But I should state the concern
more accurately. I want to ensure that the handler obtains a lock during at
least x% of its attempts, where in my application, x is around 50. The mutual
exclusion mechanism must guarantee that this will be the case.

Cheers,
Krishna
.



Relevant Pages

  • Re: spin lock
    ... is a signal handler, which executes periodically on a timer signal. ... Below is test code to illustrate a possible solution using spin-lock. ... The ratio of lock acquisitions for the handler and the foreground task ...
    (comp.lang.forth)
  • [git patches] ocfs2 and configfs updates
    ... lock migration race fixes. ... Most forms of migration had been temporarily ... disabled in the ocfs2 dlm due to those problems, ... Added post handler callable function in o2net message handler ...
    (Linux-Kernel)
  • Re: kqueue disable on delivery...
    ... The first is EV_DOD, aka disable on delivery. ... (Reallocation of the knote is also lock intensive, ... it's too implementation specific flag. ... a timeout handler for the connection) poses to be a problem. ...
    (freebsd-arch)
  • Re: kqueue disable on delivery...
    ... The first is EV_DOD, aka disable on delivery. ... (Reallocation of the knote is also lock intensive, ... it's too implementation specific flag. ... a timeout handler for the connection) poses to be a problem. ...
    (freebsd-current)
  • Re: When to disable/enable APCs?
    ... calls a handler function in kernel32. ... or processed after the lock is acquired? ... you want to disable APCs before acquiring it. ...
    (microsoft.public.development.device.drivers)