Showing posts from March, 2016

Featured Post

Smart Product designer

download and purchase link:

Live preview :

Smart Product Designer is a  tool to create your own product and get directly from your website. It is well documented, very easy to customize and use. It is build using most advance technologies including javascript, jQuery and html5.
Features Choose different product from collectionAdd custom texts to product.Change text colorChange the size and font of the TextLet the user drag, move or remove elementsAdd images to product selected from art gallery or browse it from systemDesign both frontside and back-sideShows preview while designingDownload designVery easy to customize and useHere is the purchase link :

Running parallel tasks using ThreadPool.QueueUserWorkItem Method in .NET 3.5

Sometimes we need to run tasks in parallel so that performance of any application can be improved. Here is the sample function to run task in parallel using ThreadPool.QueueUserWorkItem. These parallel task will be added to Queue and as soon as thread is available in thread pool task will be executed. So number of tasks running in parallel depends upon the number of threads available in threadpool. So, in case if system have multiple processors then more threads will be available in threadpool and more tasks can run in parallel.

C# Function to run tasks in parallel -
///<summary> ///Function to Executes a set of methods or tasks in parallel. The results ///from each task or method in an array will be returned when all threads  ///have completed.No parameter and return valuemust not be provided with task or methods ///</summary> ///<param name="m"></param> ///<returns></returns> publicstaticvoidExecuteParallel(paramsAction[] tasks)         { // Initia…