Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.programming.threads > #1724
| From | aminer <aminer@toto.net> |
|---|---|
| Newsgroups | comp.programming.threads, comp.programming |
| Subject | Re: About my RWLock ... |
| Date | 2013-09-22 23:37 -0700 |
| Organization | albasani.net |
| Message-ID | <l1od0r$l3j$1@news.albasani.net> (permalink) |
| References | <l1obk6$kls$1@news.albasani.net> |
Cross-posted to 2 groups.
Hello, This SpinLock that i am using will not impact the performance of my RWLock cause to use effectivly my RWLock there must be far less a fewer number of writers than readers. But it will impact the performance of my SemaCondVar and SemaMonitor, so i will design something that look like an MCS queue Lock and that is more efficient than this SpinLock with a backoff mechanism, and as i said before we have to spin on local variables not on shared variable and use a backoff mechanism this way our Lock will be very efficient. Thank you, Amine Moulay Ramdane. On 9/22/2013 11:13 PM, aminer wrote: > > Hello, > > > If you take a look at the SpinLock that i am using > inside my SemaMonitor, it uses a backoff mechanism to be more efficient > but there is still a weakness with that SpinLock cause > all the threads inside this SpinLock spin on the same shared location > causing > cache-coherence traffic on every successful lock access so it will slow > globally the threads of your computer, so the idea is to use like an MCS > queue Lock that uses > an exponential backoff and that doesn't spin on a shared variable but > local variables. > > I am not the designer of this SpinLock, this SpinLock was designed by > other devellopers and it is not so efficient as i have just explained, > here is the > devellopers of this SpinLock (that i am using) called Istvan Agoston and > Primoz Gabrijelcic : > > here > http://code.google.com/p/gpdelphiunits/source/browse/trunk/src/SpinLock.pas?r=37 > > > > So i will try to design something like an MCS queue lock that > is very efficient in the near future nad that i will use inside > my SemaCondvar and SemaMonitor. > > > Thank you, > Amine Moulay Ramdane. > > >
Back to comp.programming.threads | Previous | Next — Previous in thread | Next in thread | Find similar
About my RWLock ... aminer <aminer@toto.net> - 2013-09-22 23:13 -0700
Re: About my RWLock ... aminer <aminer@toto.net> - 2013-09-22 23:37 -0700
Re: About my RWLock ... aminer <aminer@toto.net> - 2013-09-22 23:40 -0700
Re: About my RWLock ... aminer <aminer@toto.net> - 2013-09-22 23:47 -0700
csiph-web