Coroutines in C#

I believe with the new .NET 4.5\C# 5 the async\await pattern should meet your needs. async Task<string> DownloadDocument(Uri uri) { var webClient = new WebClient(); var doc = await webClient.DownloadStringTaskAsync(url); // do some more async work return doc; } I suggest looking at http://channel9.msdn.com/Events/TechEd/Australia/Tech-Ed-Australia-2011/DEV411 for more info. It is a great presentation. Also http://msdn.microsoft.com/en-us/vstudio/gg316360 has … Read more

Processes, threads, green threads, protothreads, fibers, coroutines: what’s the difference?

OK, I’m going to do my best. There are caveats everywhere, but I’m going to do my best to give my understanding of these terms and references to something that approximates the definition I’ve given. Process: OS-managed (possibly) truly concurrent, at least in the presence of suitable hardware support. Exist within their own address space. … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)