Hey that's useful, thank you, however, I was wondering, how do you assign a part of a combolist to it? I usually just do foreach line in an array, that's whats confusing me the most
Threads are generally for system side duties.
You want Parallels. You can use Parallels just like how you were talking about your foreach loop, but I prefer for loops An example:
Console.WriteLine("Amount of threads: ");
string amntStr = Console.ReadLine();
int amnt = Convert.ToInt32(amntStr);
string[] combos = File.ReadAllLines(AppDomain.CurrentDomain.BaseDirectory + "combo.txt");
Parallel.For(0, combos.Length, new ParallelOptions() { MaxDegreeOfParallelism = amnt }, l =>
{
Console.WriteLine(amnt);
Console.WriteLine(combos[l]);
});
You can control amount of "threads" with MaxDegreeOfParallelism