Calling function using threads

santhosh kumar replied to Eswaran Radhakrishnan at 04-Jul-08 06:08
    Hi,

    Thread[] ThreadArray = null;


    protected void Page_Load(object sender, EventArgs e)
    {

            for (int i = 0; i < 10; i++)
            {

            
                // *** Create a thread and point it to QueueFirstRun function
                ThreadArray[i] = new Thread(ob[i].Run);

                 // *** Make the Thread to run as the Background thread
                ThreadArray[i].IsBackground = true;

                // *** Start the Thread
                ThreadArray[i].Start();

            }


     }

  Regards,
  Santhosh



Click here to sign in and reply. You could earn money via our $500 contest just for being helpful.
  How to call a function using Thread in C#? - Eswaran Radhakrishnan  04-Jul-08 04:07 4:07:51 AM
      Delay - sundar k  04-Jul-08 04:12 4:12:22 AM
          I used that one also.. But Not use.. - Eswaran Radhakrishnan  04-Jul-08 04:18 4:18:49 AM
      solution to wav file playing - Umapathy Kaliaperumal  04-Jul-08 04:56 4:56:43 AM
          It did not work. Any other ideas... - Eswaran Radhakrishnan  04-Jul-08 05:21 5:21:49 AM
              thread issue - Umapathy Kaliaperumal  04-Jul-08 06:19 6:19:03 AM
      Re:How to call a function using Thread in C#? - Ashutosh Dhok  04-Jul-08 05:22 5:22:57 AM
          Solution - kalit sikka  04-Jul-08 05:33 5:33:23 AM
      use multithreading - A K  04-Jul-08 05:27 5:27:44 AM
      Calling function using threads - santhosh kumar  04-Jul-08 06:08 6:08:52 AM
          I need to pass some paramenters when we call the function... - Eswaran Radhakrishnan  04-Jul-08 10:42 10:42:18 AM
View Posts

promotion
Silverlight    WPF    WCF    WWF    LINQ   
JavaScript    AJAX    ASP.NET    XAML   
C#    VB.NET    VB 6.0    GDI+    IIS    XML   
.NET Generics    Anonymous Methods    Delegate   
Visual Studio .NET    Expression Blend    Virus   
Windows Vista    Windows XP    Windows Update   
Windows 2003 Server    Windows 2008 Server   
SQL Server    Microsoft Excel    Microsoft Word   
SharePoint    BizTalk    Virtual Earth   
.NET Compact Framework    Web Service   


"Everything" RSS / ATOM Feed Parser
How to send and receive messages through message queuing in .Net
How to Read text file as database
SQL Server 2005 Paging Performance Tip
Display code of web page.
Fully Scalable Excel File Importer class for .net using Microsoft Jet driver
Generic Chart Color Manager class that can be used for any charts
Helper class to style the infragistics wingrid
Using Reflection to detemine as Assembly Info in and out.
Helper class to play with Window (Owners and position)
Resolving displayname from the culture using the XmlLanguage and LanguageSpecificStringDictionary class