Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.programming.threads > #2714
| Path | csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!news.swapon.de!eternal-september.org!feeder.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail |
|---|---|
| From | Ramine <ramine@1.1> |
| Newsgroups | comp.programming.threads |
| Subject | About Parallel Hahslist |
| Date | Tue, 25 Nov 2014 06:25:09 -0800 |
| Organization | A noiseless patient Spider |
| Lines | 42 |
| Message-ID | <m523eo$hh2$2@dont-email.me> (permalink) |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=ISO-8859-1; format=flowed |
| Content-Transfer-Encoding | 7bit |
| Injection-Date | Tue, 25 Nov 2014 14:24:25 +0000 (UTC) |
| Injection-Info | mx02.eternal-september.org; posting-host="1ae5840e55f7298da80ae7cf67a723cd"; logging-data="17954"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+kGgZhsCzc6n29MSe7MIwO" |
| User-Agent | Mozilla/5.0 (Windows NT 6.0; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 |
| Cancel-Lock | sha1:ZEeiNLtldzRriEo1RH/2f5qz7YQ= |
| Xref | csiph.com comp.programming.threads:2714 |
Show key headers only | View raw
Hello, As you know i have implemented a Parallel Hashlist (a parallel hashtable) that uses fine-grained locking using lock-striping, but i have just corrected a bug in the Find() method of Parallel Hahslist, and i have modified a little bit the interface of the Find() method, please look inside the "test.pas" example to see how to use it.. i have thought more to how to avoid modifying the interface of the Find() method, and i have come to the conclusion that i have to derive from TPersistant the object that you pass to the Remove() and Add() and Find() methods , so when i am inside the scalable RWLock inside the Find() method i have to return a copy of the Object that is derived from TPersistent, but i have thought more about this, and i have come to the conclusion that this method of deriving from TPersistent and returning a copy of the object from the Find() method is subject to a bug in parallel programming if the object contains a reference ( a pointer) to another object and that this reference can be freed when returning from the Remove() method, so because of this constraint i have decided to keep the new modified interface. My Parallel Varfiler don't have this bug/problem. You can download the new version of my Parallel Hahslist from: https://sites.google.com/site/aminer68/ I have also corrected a memory leak inside my Parallel Varfiler, you can download the new version from: https://sites.google.com/site/aminer68/ Thank you, Amine Moulay Ramdane.
Back to comp.programming.threads | Previous | Next | Find similar | Unroll thread
About Parallel Hahslist Ramine <ramine@1.1> - 2014-11-25 06:25 -0800
csiph-web