OP 29 November, 2020 - 05:51 PM
(This post was last modified: 29 November, 2020 - 05:52 PM by 3imadxDDD.)
i have just create a basic checker and i want add multithreading . i used tasks but no boost performance the same cpm what should i use and how ?
this is the part of code i want use threads on
this is the part of code i want use threads on
Code:
for (int i= backint-1; i < passwordlist.Count;i++)
{
if (!tokenSource.IsCancellationRequested)//basically if you didnt find password do dis . i add it to exit the for loop
{
double nisba = (Convert.ToDouble(Attemps) / Convert.ToDouble(passwordlist.Count)) * 100;
Console.Write("\r{0:0.000}%", nisba);
Check(passwordlist[i], tokenSource);
Attemps++;
SaveAttemps(Attemps);
}