Locations of visitors to this page
    Sprouting Synapses       Minimize  

             
            Minimize  
Author: SkySigal Created: 8/11/2008 3:49 PM
A stitch in time saves 9...(Threading on the .NET platform)

By SkySigal on 9/30/2008 11:52 PM

Since we're on the subject of threads ...here's a good post on the concept of SpinLocks

http://blogs.msdn.com/pedram/archive/2008/06/02/coordination-data-structures-spinlock.aspx

powered by metaPost

By SkySigal on 8/27/2008 12:14 AM

image One question that comes up regularly with regards to Threads and IIdentity/IPrincipal, is what happens after you have upgraded the CurrentPrincipal of the AppDomain/ primary Thread from the default GenericPrincipal/GenericIdentity to a custom solution, and then you spawn a secondary thread: does the secondary thread inherit the new IPrincipal/IIdentity, or revert back to the generic one?

This is what happens:

Read More »

By SkySigal on 8/12/2008 4:36 AM

blog_csharp In a previous post we introduced the fundamentals of threading (Start, Abort, Join, CriticalRegions).
One thing we didn't explain was how to share data between threads without causing a right stuff-up (lovely Kiwi term :-) )

Read More »

By SkySigal on 8/11/2008 6:10 PM

image Starting multiple secondary parameterized threads and wait for them to all finish, is marvelously easy in C#.

All you have to do is follow the following simple recipe.

Read More »

By SkySigal on 4/17/2008 4:30 PM

Since NET 2.0, you can create Delegates on the fly to work with UI cross threading issues (when InvokeRequired=true):

Read More »


             
Copyright 2007 by Sky Sigal