Intel® Moderncode for Parallel Architectures
Support for developing parallel programming applications on Intel® Architecture.
1696 Discussions

Parallelcompression library was updated to version 2.16 ...

aminer10
Novice
307 Views



Hello,

Parallelcompression library was updated to version 2.16 , i have
just changed the code inside my threadpool.pas engine inside the
parallel compression zipfile to not use work-stealing , cause work-stealing
will cause a deadlock in parallelcompression library, so please use the
threadpool engine that i have provided you inside the parallelcompression zipfile.

Description:

Parallel compression library implements Parallel Gzip , Parallel Bzip ,
Parallel LZMA and Parallel LZ algorithms using my Thread Pool Engine.


You can download my ParallelCompression library version 2.16 from:

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


Thank you.

Amine Moulay Ramdane.

0 Kudos
2 Replies
aminer10
Novice
307 Views

Hello,


I will try to clarify more this problem that i have solved in
version 2.16 ...

If you take a look inside the parallelcompression zipfile,
inside the file parallelgzip.pas, you will notice that i am using a threadpool
engine and inside the TCallbacks.GzipCompress() method i am using
GZCompressStream() outside the critical section , this is good for
scalability, but inside the same method i am using also a critical section
like this:
repeat
If TParallelGzip(Tjob(obj).obj).count_compress = Tjob(obj).index
then
begin
// i am using some code here
Inc(TParallelGzip(Tjob(obj).obj).count_compress);
break;
end;
sleep(0);
until false;

as you have noticed , in this critical section i am testing like this:
If TParallelGzip(Tjob(obj).obj).count_compress = Tjob(obj).index
and if you read carefully the code inside parallelgzip.pas you will
notice that since i am using a critical section like this , and using
a threadpool engine, the threadpool engine mustnot use work-sealing
or this will cause a deadlockinsidethe TCallbacks.GzipCompress() method,
so to correct this problem i had to use for example a FIFO queue for
each worker thread to enhance the scalability and completly avoid
work-stealing (from the LIFO Stacks.or FIFO Queues).


Thank you for your time.



Amine Moulay Ramdane.


0 Kudos
tomorrowwillbefine
307 Views

Microsoft Office 2010 is actually the newest software from microsoft office 2010 keys Microsoft Corporation introduced in the last year. Its leading aims tend to be to catch the present business requirements and to be on top of every competition with regard to the international market criteria. This can be a very good idea to obtain Microsoft Office 2010 Key immediately to maintain norton antivirus keys yourself up-to-date and to present you with the vast qualified progress opportunities for success. Microsoft Office 2010 is available in both 32-bit and 64-bit editions, but attention please the two are not able to co-exist on the very same personal computer. All of the Office 2010 editions are kaspersky antivirus keys suitable for Windows XP SP3, Windows Vista and Windows 7.

www.keyyeah.com

0 Kudos
Reply