Created
January 18, 2012 18:20
-
-
Save Nisden/1634640 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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