I have 3 threads created from the same ParameterizedThreadStart,
this delegate encapsulates a method with 1 argument of object,
I want to execute each thread with different arguments passed into the delegate.
But I don't know how to do, for example, the 3 arguments are a1, a2, a3.
The method is called MakeGrey, I want to execute 3 threads t1, t2, t3 with t1 executing MakeGrey(a1), t2 executing MakeGrey(a2), t3 executing MakeGrey(a3).
Could you tell me how to do it? I know we have to have an If statement at the beginning of the method MakeGrey to check if InvokeRequired to call Invoke, but calling this Invoke method requires a parameterizedthreadstart and some argument and I don't know which argument is passed into Invoke because I have 3 arguments a1, a2, a3 as mentioned above.
Hope you understand what I'm being stuck at and help me!
Your help would be highly appreciated!
Thank you!