-
Hi, private static readonly AsyncReaderWriterLock _rwlock = new();
//Thread:1
using (await _rwlock.AcquireWriteLockAsync(token))
{}
//Thread:2
using (_rwlock.AcquireUpgradeableReadLock())
{
using(_rwlock.AcquireWriteLock())
{}
} Does Thread 1 and 2 block each other when one of them is entered write lock? |
Beta Was this translation helpful? Give feedback.
Answered by
sakno
May 28, 2024
Replies: 1 comment
-
No, it's not possible. They are irrelevant. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
oruchreis
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
No, it's not possible. They are irrelevant.