Results 1 to 3 of 3

Thread: What is Threading in C# Programming ?

  1. #1
    Join Date
    Jan 2009
    Posts
    21

    What is Threading in C# Programming ?

    Hi

    I read threading in C# book but i did't understand what is that can some one who know C# can explain me what is threading in C# ?

    Thanks

  2. #2
    Join Date
    Feb 2008
    Posts
    1,852

    Re: What is Threading in C# Programming?

    Threading enables your C# program to perform concurrent processing so you can do more than one operation at a time. For example, you can use threading to monitor input from the user, perform background tasks, and handle simultaneous streams of input. The System.Threading namespace provides classes and interfaces that support multithreaded programming and enable you to easily perform tasks such as creating and starting new threads, synchronizing multiple threads, suspending threads, and aborting threads.

  3. #3
    Join Date
    May 2008
    Posts
    21

    Re: What is Threading in C# Programming?

    To incorporate threading in your C# code, simply create a function to be executed outside the main thread and point a new Thread object at it. The following code example creates a new thread in a C# application:

    Code:
    System.Threading.Thread newThread;
    newThread = new System.Threading.Thread(anObject.AMethod);
    The following code example starts a new thread in a C# application:

    Code:
    newThread.Start();
    Multithreading solves problems with responsiveness and multi-tasking, but can also introduce resource sharing and synchronization issues because threads are interrupted and resumed without warning according to a central thread scheduling mechanism.

Similar Threads

  1. Threading in c# .net
    By Athreya in forum Software Development
    Replies: 3
    Last Post: 12-01-2011, 03:29 PM
  2. What is Hyper threading
    By Ameeryan in forum Overclocking & Computer Modification
    Replies: 2
    Last Post: 06-10-2009, 04:03 PM
  3. VB.NET threading question
    By AmolP in forum Software Development
    Replies: 3
    Last Post: 14-02-2009, 06:03 PM
  4. Threading Unleashed
    By Cool_Rahul in forum Software Development
    Replies: 0
    Last Post: 19-12-2008, 01:39 PM
  5. Replies: 3
    Last Post: 13-12-2008, 01:49 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,642,871,600.02686 seconds with 17 queries