Skip to content

Instantly share code, notes, and snippets.

@Nisden
Created January 18, 2012 18:20
Show Gist options
  • Save Nisden/1634640 to your computer and use it in GitHub Desktop.
Save Nisden/1634640 to your computer and use it in GitHub Desktop.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Net;
using System.Threading;
namespace Derp
{
class Program
{
private static string address = "http://www.easycounter.com/counter.php?v5prh";
private static int count;
static void Main(string[] args)
{
count = 0;
int threadCount = 20;
for (int i = 0; i < threadCount; i++)
{
new Thread(() =>
{
Thread.CurrentThread.IsBackground = true;
WebClient client = new WebClient();
while (true)
{
client.DownloadData(address);
count++;
Console.WriteLine("Press enter to exit, raised the shit by: {0}", count);
}
}).Start();
}
Console.Title = "Press enter to exit.";
Console.ReadLine();
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment