Click here to Skip to main content
15,879,535 members
Articles / Programming Languages / C#

Multithreading Demystified

Rate me:
Please Sign up or sign in to vote.
4.77/5 (45 votes)
25 Jan 2013CPOL22 min read 75.2K   2.3K   170  
Multi-threading in .NET - A walkthrough.
// Author - Anshu Dutta
// email - anshu.dutta@gmail.com
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Demo.Threading.Web
{
    class Utility
    {
       
        public Utility()
        {
            
        }

        public static string LoadData(int max)
        {
            string str = string.Empty;

            for (int i = 0; i < max; i++)
			{
                str += i.ToString();
			}

            return str;
        }
    }
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer (Senior)
Australia Australia
I am a Senior Software Developer / Technical Consultant in a leading software company.

Comments and Discussions