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


Groups > comp.programming.threads > #1155

Re: Threadpool 1.4 and threadpool with priority 1.3

From "aminer" <aminer@videotron.ca>
Newsgroups comp.programming.threads, comp.programming
Subject Re: Threadpool 1.4 and threadpool with priority 1.3
Date 2012-10-01 15:09 -0500
Organization A noiseless patient Spider
Message-ID <k4cppc$v23$1@dont-email.me> (permalink)
References <k4cp73$qtn$1@dont-email.me>

Cross-posted to 2 groups.

Show all headers | 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