Languages
[Edit]
EN

C#/.NET - thread example

8 points
Created by:
Trenton-McKinney
618

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.
Donate to Dirask
Our content is created by volunteers - like Wikipedia. If you think, the things we do are good, donate us. Thanks!
Join to our subscribers to be up to date with content, news and offers.

C# - concurrency

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