void SleepSort(IEnumerable<int> values)
{
foreach (var value in values)
{
System.Threading.Tasks.Task.Run(() =>
{
Thread.Sleep(value);
Console.WriteLine(value);
});
}
}
void Main()
{
var values = new List<int> { 2000, 4, 400, 1600, 50, 1024 };
SleepSort(values);
}
Kaedn
I need to to thank you for this very good read!! I certainly loved every little bit of it. I’ve got you bokoemark-d to check out new stuff you post…