Recent

Author Topic: ParallelSort library have been updated to version 3.01  (Read 2165 times)

aminer

  • Hero Member
  • *****
  • Posts: 956
ParallelSort library have been updated to version 3.01
« on: October 26, 2012, 03:14:22 am »


Hello,


ParallelSort library have been updated to version 3.01


I have coprrected a problem so that ParallelSort library will not
deadlock, it was deadlocking in the situation were you enter
at the first time the: if (( length1 + length2 ) <= 8000) , inside TParallelSort.merge_parallel() method. without signaling the event.

I  have corrected this problem, and here is what i have corrected:

I have added this:
 if long(value^)=0 then event.setevent; 

to the TParallelSort.merge_parallel() method.


Like this:

if (( length1 + length2 ) <= 8000)  then

                  begin
                    SequentialMerge(a, t, p1, r1, p2, r2, p3,scompare);
                    if long(value^)=0 then event.setevent; 
                    exit;
                  end;



You can download ParallelSort library version 3.01 from:

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


Thank you,
Amine Moulay Ramdane.




aminer

  • Hero Member
  • *****
  • Posts: 956
Re: ParallelSort library have been updated to version 3.01
« Reply #1 on: October 26, 2012, 03:21:08 am »

Hello,


ParallelSort library has been updated to version 3.01


I have coprrected a problem so that ParallelSort library will not
deadlock, it was deadlocking in the situation were you enter
the: if (( length1 + length2 ) <= 8000) , inside
TParallelSort.merge_parallel() method. at the first time when
value equal 0 without signaling the event.

I  have corrected this problem, and here is what i have corrected:

I have added this:
 if long(value^)=0 then event.setevent;

to the TParallelSort.merge_parallel() method.


Like this:

if (( length1 + length2 ) <= 8000)  then

                  begin
                    SequentialMerge(a, t, p1, r1, p2, r2, p3,scompare);
                    if long(value^)=0 then event.setevent;
                    exit;
                  end;



You can download ParallelSort library version 3.01 from:

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


Thank you,
Amine Moulay Ramdane.


 

TinyPortal © 2005-2018