By tag: Threading
0
kicks
.NET Book : Visual Studio 2012 and .NET 4.5 Expert Development Cookbook (Must Read)
It is my great honor to tell you that my book has finally been released this week. If you have ever liked any of my blogs or internals, you would like this book for sure. There are lot of things to learn from the book and I can assure you that you wont be upset with this book if you buy it.
The "Vi...
0
kicks
Putting my IronMQ experiment under stress
A look at the things you run into when you have lots of threads pulling messages from a queue and processing them.
0
kicks
Thread Pool using Core-Affine Threads
Article with source code for a ThreadPool replacement which uses the XBox 360's hardware threads (which are only used when threads are assigned to them explicitly). Common problems with manually assigned processor affinity on desktop PCs are highlighted and the author shows a solution that allows th...
0
kicks
Thread Synchronization: Ensuring Atomic Operations
An article about atomic transactions and how to maintain them using locks in C#
0
kicks
Thread Synchronization: Avoiding Race Conditions
Race conditions in a multithreaded application and how to prevent them using Wait Handles
0
kicks
Threading On Multi-Core CPUs
A comparison between performance improvement using concurrent threads on multiple CPUs
0
kicks
File System Watcher And Large File Volumes
A threading based approach to overcome the buffer limit for File System Watcher control.
0
kicks
Why are thread safe collections so hard?
"Writing a collection which is mutable, thread safe and usable is an extremely difficult process. At least that’s what you’ve likely been told all through your schooling. But then you get out on the web and see a multitude of thread safe lists, maps and queues. If it’s so hard, why are there...
0
kicks
Unexpected Results using InvokeRequired and Multi-threading Secrets!
Before you rush and view my blockquote and jump to the conclusion “oh, it’s just that standard threading issue”, well let me assure you this is different to the norm, and please.. Yesterday, was a very annoying day dealing with multi-threading in my app, you would think I would be good at this by n...
0
kicks
9 Examples of creating a fast and responsive UI with multi-threading
9 C# examples of creating a fast and responsive UI with multi-threading, very clear and streamlined examples to get up and running quickly.
0
kicks
volatile and MemoryBarrier()...
That part I knew… what we news to me is there is a better way to do volatile, and that is with an explicitly memory barrier before accessing the data member.. We have a an API for that: System.Threading.Thread.MemoryBarrier(). This is more efficient than using volatile because a volatile field r...
0
kicks
Build Scalable ASP.NET Websites using Asyncronous Programming Models
Excellent MSDN Webcast on how to use Asynchronous Programming model in your ASP.NET 2.0 pages to avoid using up all your threads from threadpool for some lengthy operation (remote web service call, remote sql server query etc).. A must-watch!
0
kicks
A basic NamedLock class
Here’s a bit of code I extracted from my own special baby of an application. It allows me to lock on a specific "name", rather than having to use an object instance and the built in lock construct.
0
kicks
Spider's Web: Spawning threads in .NET (Part 1 of 5), The Basics
First part of a five part post on threading in .NET
0
kicks
Calling delegates with BeginInvoke, Invoke, DynamicInvoke and delegate
Several ways of invoking delegates synchronously and asynchronously. From MSDN blogs, interesting.