Languages
[Edit]
EN

C#/.NET - thread example

8 points
Created by:
AnnLen
9180

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.
Native Advertising
50 000 ad impressions - 449$
🚀
Get your tech brand or product in front of software developers.
For more information contact us:
Red dot
Dirask - friendly IT community for everyone.

❤️💻 🙂

Join