Groups | Search | Server Info | Keyboard shortcuts | Login | Register


Groups > comp.programming.threads > #1155

Re: Threadpool 1.4 and threadpool with priority 1.3

Path csiph.com!usenet.pasdenom.info!gegeweb.org!eternal-september.org!feeder.eternal-september.org!mx04.eternal-september.org!.POSTED!not-for-mail
From "aminer" <aminer@videotron.ca>
Newsgroups comp.programming.threads, comp.programming
Subject Re: Threadpool 1.4 and threadpool with priority 1.3
Date Mon, 1 Oct 2012 15:09:27 -0500
Organization A noiseless patient Spider
Lines 58
Message-ID <k4cppc$v23$1@dont-email.me> (permalink)
References <k4cp73$qtn$1@dont-email.me>
Injection-Date Mon, 1 Oct 2012 19:09:32 +0000 (UTC)
Injection-Info mx04.eternal-september.org; posting-host="c43ca82f9e8d62a602307fe9d2e9b807"; logging-data="31811"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX195CG+78AOF1gH36THxHDZE"
X-MimeOLE Produced By Microsoft MimeOLE V6.00.2900.6157
X-RFC2646 Format=Flowed; Response
X-Newsreader Microsoft Outlook Express 6.00.2900.5931
Cancel-Lock sha1:kwyQ87UpOHC9eDMzBPyvvo1XxGY=
X-Priority 3
X-MSMail-Priority Normal
Xref csiph.com comp.programming.threads:1155 comp.programming:2277

Cross-posted to 2 groups.

Show key headers only | View raw


Hello

If you want to look at more exemples of how to use my threadpool engine, 
just look at my  parallel quicksort library or my other parallel libraries 
such parallel compression library and my other
parallel libraries, i have used my threadpool engine to implement all of 
them.

As you will notice, inside the new Exec() of the threadpool enginei have 
used the same method as with my implementation of the Distributed 
Reader-Writer Mutex 1.04 and i am using a variable number of mrews to lower 
the contention more in my implementation of Distributed Reader-Writer Mutex 
1.04
based on the Dmitry Vyukov C++ Distributed Reader-Writer Mutex,
and as i said i am using mutiple lockfree FIFO queues inside my threadpool 
engine, so that there is less contention and using work-stealing also, so 
after i  have added addedthe exec()
method , this threadpool engine hasl become scalable and this threadpool 
engine can also
be used as a scalable queue(not a strict FIFO queue, but almost, and it will
be also useful).

This threadpool engine is useful and that is what's important.


Thank you,
Amine Moulay Ramdane.

"aminer" <aminer@videotron.ca> wrote in message 
news:k4cp73$qtn$1@dont-email.me...
> Hello,
>
> Threadpool and Threadpool with priiority was updated ,
> now the i have added an Exec() method that is scalable,
> and i have let the Execute() method that is not scalable.
>
> The interface of the new Exec() method is:
>
> function Exec(func:TMyProc;const Context: Pointer;var index:long): 
> Boolean;
>
>
> And don't forget to initialize once the index to 0 before calling
> Exec().
>
>
> You can download them from:
>
> http://pages.videotron.com/aminer/
>
>
>
> Thank you,
> Amine Moulay Ramdane.
>
> 

Back to comp.programming.threads | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

Threadpool 1.4 and threadpool with priority 1.3 "aminer" <aminer@videotron.ca> - 2012-10-01 14:59 -0500
  Re: Threadpool 1.4 and threadpool with priority 1.3 "aminer" <aminer@videotron.ca> - 2012-10-01 15:09 -0500
  Re: Threadpool 1.4 and threadpool with priority 1.3 "aminer" <aminer@videotron.ca> - 2012-10-03 10:56 -0500

csiph-web