Hi Pragnesh,
The logic behind how you have your code separated into a GThread-derived
class, and how you create those objects, add them to the GApplication,
attach to the ThreadFinish events, and then call Start() on the
GApplication.
I think that you are getting hung up on how to access the data in the
threads when they come back.
You should be doing something like this in your ThreadFinish method:
Matrix_thread thrd=(Matrix_thread)th;
Console.WriteLine("Resultant Matrix",thrd.outm);
Also, keep in mind that when you create instances of the Matrix_thread
class, that their respective in1, in2, and outm arrays are _not the same_.
If you have 10 Matrix_thread classes, then you have 30 arrays (1 in1, 1 in2,
and 1 outm array for each of the 10 threads). Also, those arrays are not
the same as the one in the GApplication. Just because they are named the
same doen't mean that they refer to the same memory location.
Hope that helps,
-Matt
On 9/16/07, pragnesh pandya <[EMAIL PROTECTED]> wrote:
>
> Hi,
> I am trying for creating grid application for matrix multiplication
> and unable to get desire output . Can anyone help? Urgent. I am confused
> where to print output exactly.
>
> see the attached file.
>
>
>
>
> Thanks & Regards,
>
> Pragnesh Pandya
> +91 9916347935
>
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
alchemi-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/alchemi-users