Stories recently tagged with 'threading'

Thread Pool using Core-Affine Threads(cygon.nuclex.org)

submitted by CygonCygon(134) 2 years, 8 months ago

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 the operating system to reschedule threads while still yielding comparable behavior to the explicit affinity model used by the XBox 360. read more...

add a comment |category: |Views: 105

tags: another

Thread Synchronization: Ensuring Atomic Operations(csharp-codesamples.com)

submitted by rohanwarangrohanwarang(80) 3 years, 1 month ago

An article about atomic transactions and how to maintain them using locks in C# read more...

add a comment |category: |Views: 41

tags: another

Thread Synchronization: Avoiding Race Conditions(csharp-codesamples.com)

submitted by rohanwarangrohanwarang(80) 3 years, 1 month ago

Race conditions in a multithreaded application and how to prevent them using Wait Handles read more...

add a comment |category: |Views: 30

tags: another

Threading On Multi-Core CPUs(csharp-codesamples.com)

submitted by rohanwarangrohanwarang(80) 3 years, 2 months ago

A comparison between performance improvement using concurrent threads on multiple CPUs read more...

add a comment |category: |Views: 26

tags: another

File System Watcher And Large File Volumes(csharp-codesamples.com)

submitted by rohanwarangrohanwarang(80) 3 years, 2 months ago

A threading based approach to overcome the buffer limit for File System Watcher control. read more...

add a comment |category: |Views: 95

tags: another

Why are thread safe collections so hard? (blogs.msdn.com)

submitted by gavinjoycegavinjoyce(25.7k) 3 years, 3 months ago

"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 so many examples?" read more...

1 comment |category: |Views: 335

tags: another

Unexpected Results using InvokeRequired and Multi-threading Secrets!(goneale.wordpress.com)

submitted by gonealegoneale(1055) 3 years, 3 months ago

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 now considering I blogged about it not too long ago acting like I knew what I was talking about. read more...

add a comment |category: |Views: 31

tags: another

9 Examples of creating a fast and responsive UI with multi-threading(goneale.wordpress.com)

submitted by gonealegoneale(1055) 3 years, 3 months ago

9 C# examples of creating a fast and responsive UI with multi-threading, very clear and streamlined examples to get up and running quickly. read more...

add a comment |category: |Views: 907

tags: another

volatile and MemoryBarrier()...(blogs.msdn.com)

submitted by crpietschmanncrpietschmann(11.3k) 3 years, 10 months ago

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 requires all accesses to be barriers and this effects some performance optimizations. read more...

add a comment |category: |Views: 27

tags: another

Build Scalable ASP.NET Websites using Asyncronous Programming Models(microsoft.com)

submitted by spavkovspavkov(1718) 4 years, 1 month ago

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! read more...

add a comment |category: |Views: 27

tags: another

A basic NamedLock class(tryingthisagain.com)

submitted by mrkurtmrkurt(280) 4 years, 3 months ago

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. read more...

add a comment |category: |Views: 10

tags: another

Spider's Web: Spawning threads in .NET (Part 1 of 5), The Basics(raasiel.typepad.com)

submitted by raasielraasiel(865) 4 years, 6 months ago

First part of a five part post on threading in .NET read more...

add a comment |category: |Views: 13

tags: another

Calling delegates with BeginInvoke, Invoke, DynamicInvoke and delegate(blogs.msdn.com)

submitted by simonebsimoneb(5450) 4 years, 6 months ago

Several ways of invoking delegates synchronously and asynchronously. From MSDN blogs, interesting. read more...

add a comment |category: |Views: 239

tags: another

Wicked Code: Asynchronous Pages in ASP.NET 2.0(msdn.microsoft.com)

submitted by simonebsimoneb(5450) 4 years, 6 months ago

Comprehensive interesting article about going asynchronous with ASP.NET Web Forms from Jeff Prosise. read more...

3 comments |category: |Views: 32

tags: another

Windows Services ThreadPool Hell(itwebmonkey.com)

submitted by davidsdavids(480) 4 years, 7 months ago

Overcoming issues with threadpools in windows services. read more...

add a comment |category: |Views: 165

tags: another

Asyncify Your Code(jdconley.com)

submitted by jconleyjconley(650) 4 years, 7 months ago

Asyncify your code. Everybody's doing it. (Chicks|Dudes)'ll dig it. It'll make you cool. An opinion on .NET asynchronous patterns, a sample application exposing its own asynchronous API, and why you should be writing asynchronous code. read more...

add a comment |category: |Views: 1

tags: another