Multi-Threading

Multi-threading, concurrency, or asynchronous processing

Uploading Multiple Images in Parallel with Async and LINQ to Twitter

The Twitter API recently deprecated the statuses/update_with_media endpoint, which LINQ to Twitter abstracts via a TweetWithMedia method. It’s replaced with a new endpoint, media/upload, and a new parameter to statuses/update, media_ids. The benefit of the new API change is that you can now tweet multiple images. Naturally, LINQ to Twitter supports this capability. However, what’s really interesting is that you can upload multiple images at the same time with Task.WhenAll. This post explains how ......

TechEd 2011

Now that Mix11 is over, Microsoft’s next big conference is Tech-Ed 2011, which happens May 16th through May 19th in Atlanta, GA. Each of Microsoft’s conferences have a theme; Mix is about the Web, PDC is about new and upcoming technologies, and there are many more. The focus of Tech-Ed is on current Microsoft technologies. In other words, you would go there to learn about the software that you can use today to get your work done. If you haven’t been there yet, Atlanta is a nice city and the surrounding ......

A Basic Thread

Most of the programs written are single-threaded, meaning that they run on the main execution thread. For various reasons such as performance, scalability, and/or responsiveness additional threads can be useful. .NET has extensive threading support, from the basic threads introduced in v1.0 to the Task Parallel Library (TPL) introduced in v4.0. To get started with threads, it's helpful to begin with the basics; starting a Thread. Why Do I Care? The scenario I'll use for needing to use a thread is ......