ReaderWriterLock in C#.NET using System.Threading at .NET Support(msdotnetsupport.blogspot.com)

submitted by duttavrhotmailduttavrhotmail(344) 4 years, 2 months ago

ReaderWriterLock is available in System.Threading. ReaderWriterLock is used to acquire locks for a given resource. It allows either concurrent read access for multiple threads, or write access for a single thread.

2 comments |category: |Views: 40

tags: another

new Add a live kick counter to your blog >> liveImage

You can even customize the image by choosing your own colors, and then clicking the button below to update the preview and the html code:

  • "Kick It" text
  • "Kick It" background
  • kick count text
  • kick count background
  • border

Simply copy and paste this HTML into your blog post.


Users who kicked this story:
Comments:

posted by yesthatmcgurkyesthatmcgurk(4063) 4 years, 2 months ago 0

ReaderWriterLock is buggy and considered dangerous to rely upon. I believe Jeffrey Richter created an alternate RWL object; even it is not perfect. Google, son. Google.

Reply

posted by JudahGabrielJudahGabriel(814) 4 years, 2 months ago 0

.NET 3.5 now includes ReaderWriterLockSlim, which is the official replacement for the buggy, dangerous ReaderWriterLock.

Reply

information Login or create an account to comment on this story