c# - Monitors and re-entrancy (clarifies difference between re-entrant code and re-entrant lock) -


reading on locks in c#. see being able acquire lock on same object multiple times said possible because monitors re-entrant. definition of re-entrant code defined in wikipedia not seem fit in context. can please me understand re-entrancy in context of c# , how apply monitors? have understood, when thread has acquired lock, not relinquish lock when in middle of critical section - if yields cpu..as result of which, no other thread able acquire monitor..where re-entrancy come picture?

reentrancy has many meanings actually.

here in context means monitor can entered same thread repeatedly several times , unlock once same number of releases done.


Comments

Popular posts from this blog

how to insert data php javascript mysql with multiple array session 2 -

multithreading - Exception in Application constructor -

windows - CertCreateCertificateContext returns CRYPT_E_ASN1_BADTAG / 8009310b -