By tag: thread
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
Creating Excel spreadsheets .XLS and .XLSX in C# - ASP.NET MVC Project
Recently I had to implement some code to create an Excel spreadsheet/report using C#.
The task was: given an Excel spreadsheet template - a .XLS file (with formulas, pivot tables, macros, etc) I had to fill some data in one of the sheets of the spreadsheet and send this modified spreadsheet back to...
0
kicks
Using Async Delegates instead of the Thread class
If you want to write some asnychronous code, the good old fashioned way is to create a new Thread. But this has several pitfalls, e.g. when you need to use parameters or you need to retrieve a return value. Then this way is getting tricky.
0
kicks
Thread Safe Circular Queue Implementation in CSharp
While completing a screen for a Software Development Engineer in Test (SDTE) position at Microsoft I had to implement a thread safe circular queue. The question asked: Implement a circular queue of integers of user-specified size using a simple array. Provide routines to initialize(), enqueue() and ...
0
kicks
Impersonation across threads in ASP.NET
Shows how to pass the impersonation along to the a new thread.