All entries by this author

C# Monitor,Busy Wait,True Wait & SpinLock

Aug 21st, 2010 | By sankarsan | Category: Programming & Languages

In my last two posts I had discussed about thread synchronization,critical sections and System.Threading.Monitor class.What we have seen is, a critical section in the code where thread synchronization is required is protected by a lock.When a thread encounters a critical section it tries to acquire the lock,if successful it executes the code or else waits [...]



ServiceLocator in ASP.NET MVC 3 – Part 2

Aug 21st, 2010 | By sankarsan | Category: Web Apps

In my earlier post I had discussed about the Common Service Locator framework (IServiceLocator interface)and how we can implement an adapter for the StructureMap container.In this post we will take look into how the new ASP.NET MVC provides support to plug in this ServiceLocator.



ServiceLocator in ASP.NET MVC 3 Preview 3 – Part 1

Aug 8th, 2010 | By sankarsan | Category: Web Apps

For past couple of days I was checking out features of the new ASP.NET MVC Preview 3.There are couple of interesting new additions like integration with the new Razor viewengine,improvements in Model Validation,AJAX support and Dependency Injection.In this post we will discuss on, how ASP.NET MVC 3 has streamlined the ability to register/retrieve objects/services in [...]



July 2010 Community Tech Days Presentation

Aug 1st, 2010 | By sankarsan | Category: In Focus

Here goes my presentation for July 2010 Microsoft KolkataNET Community Tech Days Parallel Programming in .NET View more presentations from SANKARSAN BOSE.



C# Monitor – Some Important Points

Aug 1st, 2010 | By sankarsan | Category: Programming & Languages

In my last post I started the discussion on race conditions and thread synchronization technique using Monitor/lock in C#.In this post also, we will continue with the same and discuss some important points related to the Monitor class.



Race Condition & Synchronization in C#

Jul 18th, 2010 | By sankarsan | Category: Programming & Languages

We have heard about the term race condition in relation to threads.This is basically a scenario where two or more threads are competing(racing) to read/write from a shared memory location leading to the possibilities of leaving the program in an inconsistent state.



Single Assignment & readonly Fields in C#

Jun 27th, 2010 | By sankarsan | Category: Programming & Languages

We have all heard about immutable objects, the objects whose field values cannot be altered throughout it’s lifetime.Immutable objects are simpler to deal with in case concurrent programs where they can be shared between multiple threads.The single assignment variables variables which is once assigned a value cannot be reassigned again.These are inherently immutable in nature.In [...]



Caching in HTTP – Part 1

May 30th, 2010 | By sankarsan | Category: Web Apps

A Web Cache stores copies of web resources(html/images etc.) returned by the requests that pass through it and next time onwards returns the stored copy to the client instead of forwarding the same request to the server.This helps to improve the speed of content delivery, reduce bandwidth usage and processing load on the servers.Caching as [...]



Flex with WCF Service Over Https – Part 1

Apr 11th, 2010 | By sankarsan | Category: Web Apps

For the past week I am trying to play around with Flex and find out how it works with different back end service endpoints.In this post I will discuss about how Flex works with a simple WCF Service over HTTPS and also the issues I encountered while doing so.



BerkleyDB & C# – Part 1

Jan 31st, 2010 | By sankarsan | Category: Featured

In my last post I have discussed about the BerkleyDB product family.In this post we will discuss about using BerkleyDB with it’s C# API set.Before getting into the details we will take a quick look into the different access methods provided by Berkley DB. BTree – Here the data is stored in a balanced tree [...]