Hello,
Sorry i have told you that my Threadpool used as a FIFO queue
is partially scalable, but in fact it's fully scalable, when only
one thread is pushing it can not be scalable, but when many
producers are pushing and many consumers are poping it's scalable,
so it's fully scalable.
Run the test1.pas example that i have included inside
my Threadpool zip file, and you will see that my Threadpool
used as a FIFO queue is fully scalable.
You can use the same idea for stacks, so you will have also a
fully scalable stack.
I will update my Threadpool engine with priorities and you will
have also a priority FIFO queue that is fully scalable.
You can download my Threadpool engine version 1.52 from:
http://pages.videotron.com/aminer/Thank you,
Amine Moulay Ramdane.