I call with threads recursive function. But not work, because all threads have same parameters: problem is i. All i=st. Later all recursive function not working ok.
threads = new Thread[st];
for (int i = 1; i <= st; i++)
{
Thread t1 = new Thread(() =>
{
rek_md5(crke, i, new char[i], 0, md5Hash);
});
t1.Name = i.ToString();
threads[i-1] = t1;
t1.Start();
}
How can I fix, all threads have different parameters.