Suppose I start two threads like this:
// Start first thread
Thread loaderThread1 = new Thread(loader.Load);
loaderThread1.Name = \"Rope\";
loaderThread1.Sta
So, after my mistake with the process threads, here a way how to hold your Threads. Nothing spectacular, but I think coding examples are very handy anytime.
List threads = new List();
for (int i = 0; i < 10; i++)
{
Thread t = new Thread(delegate()
{
do
{
Thread.Sleep(50);
} while (true);
});
t.IsBackground = true;
t.Name = i.ToString();
t.Start();
threads.Add(t);
}
foreach (Thread t in threads)
{
Console.WriteLine(t.Name);
}