Languages
[Edit]
EN

C#/.NET - thread example

8 points
Created by:
Trenton-McKinney
348

To use threads in C#/.NET some basic knowledge could be useful.

Useful methods

  • Thread.Start
    See for example here.
  • Thread.Sleep
    See for example here.
  • Thread.Yield
    See for example here.
  • Thread.Join
    See for example here.
  • Thread.Interrupt
    See for example here.
  • Thread.Abort !!! - only for programmers who knows how it works
    See here for example how to stop thread.

Useful properties

  • Thread.Name
    See for example here.
  • Thread.IsBackground
    See for example here.
  • Thread.ThreadState
Note: check full list of constructors, methods and properties in official Microsoft documentation here.

C# - Thread Class

Native Advertising
🚀
Get your tech brand or product in front of software developers.
For more information Contact us
Dirask - we help you to
solve coding problems.
Ask question.

❤️💻 🙂

Join