Re: Lock(this): Aufgestaute Aufrufer eliminieren ?

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Hallo Dieter!

> Daher ist diese mit Lock(this)
> gekapselt. Funktioniert auch alles sauber.
> ...
> Kann ich die Aufruferliste irgendwie löschen?

Nein. Das lock Statement (bzw. der zugrundeliegende Monitor) unterstützen
(bis ggf. auf TryEnter) keinerlei Überwachung bzw. Administration von Locks
bzw. Queues.

ggf. hilft Dir eine eigene Implementierung von Locks die entsprechende
Helper Funktionen beherscht. Hab es solche mal auf codeproject gesehen (aber
selbst nicht getestet). Eventuell ist ja was dabei was Du verwenden kannst:

http://www.codeproject.com/csharp/LockManager.asp

OK?
mfg GP


.



Relevant Pages

  • Re: Newbie question on table design.
    ... The record systems I know used a job queue and locks. ... built on a queues and locking model because that is what we had. ... Synchronizing processes is one way to allow for concurrent access ... These record definition libraries eventually grew ...
    (comp.databases.theory)
  • Re: Using a data structure with many critical sections
    ... for use with lock-free operations, ... "flat" structures that seem to require enormous numbers of locks into ... not to process elements, and this is just a handful of locks, and you might ... be able to use lock-free queues. ...
    (microsoft.public.win32.programmer.kernel)
  • Re: readahead on directories
    ... fine grained locks. ... The two reasons to use a mutex instead of a spin ... forget about asking for more until the queues empty, ... to drop that client, which would free up some more memory, or it might ...
    (Linux-Kernel)