Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.programming > #2276 > unrolled thread

Threadpool 1.4 and threadpool with priority 1.3

Started by"aminer" <aminer@videotron.ca>
First post2012-10-01 14:59 -0500
Last post2012-10-03 10:56 -0500
Articles 3 — 1 participant

Back to article view | Back to comp.programming


Contents

  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

#2276 — Threadpool 1.4 and threadpool with priority 1.3

From"aminer" <aminer@videotron.ca>
Date2012-10-01 14:59 -0500
SubjectThreadpool 1.4 and threadpool with priority 1.3
Message-ID<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.

[toc] | [next] | [standalone]


#2277

From"aminer" <aminer@videotron.ca>
Date2012-10-01 15:09 -0500
Message-ID<k4cppc$v23$1@dont-email.me>
In reply to#2276
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.
>
> 

[toc] | [prev] | [next] | [standalone]


#2284

From"aminer" <aminer@videotron.ca>
Date2012-10-03 10:56 -0500
Message-ID<k4hjnr$ohg$1@dont-email.me>
In reply to#2276
Hello,

I have updated my Threapool engine, now you have
to initialize the parameter index of the exec() method
to high(long) once before calling exec() so that index
number 0 will be used.


You can download threadpool and threadpool with priority from:

http://pages.videotron.com/aminer/


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.
>
> 

[toc] | [prev] | [standalone]


Back to top | Article view | comp.programming


csiph-web