Im try to use this code for stress test:
using System.Net;
using System.IO;
using System;
using System.Threading;
using System.Collections.Generic;
namespace WebRequestTest
{
class Program
{
private static bool a = true;
private static string s;
private static long c = 0;
private const string r = "test";
static void Main()
{
List<Thread> l = new List<Thread>();
for (int i = 0; i < 3000; i++)
{
Thread t = new Thread(Call);
t.Priority = ThreadPriority.Highest;
t.Start();
l.Add(t);
}
while (a) { }
Console.WriteLine(s);
Console.WriteLine(c);
Console.ReadLine();
}
private static void Call()
{
...
Go to the complete details ...