Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Creating and Using Threads | Threading
Advanced C# with .NET

Creating and Using ThreadsCreating and Using Threads

Important Points:

  • We use the Thread class to create a new thread;
  • In order to pass a parameterless method into the thread class, we encapsulate it into a ThreadStart object.
  • A method with parameters can be executed by passing it into the Tread class after encapsulating it into a ParameterizedThreadStart object.
1. What constructor or method is used for creating a new method?
2. Which Thread constructor accepts a method with no parameters?
3. Which Thread constructor accepts a method with parameters?

What constructor or method is used for creating a new method?

Виберіть правильну відповідь

Which Thread constructor accepts a method with no parameters?

Виберіть правильну відповідь

Which Thread constructor accepts a method with parameters?

Виберіть правильну відповідь

Все було зрозуміло?

Секція 3. Розділ 2
course content

Зміст курсу

Advanced C# with .NET

Creating and Using ThreadsCreating and Using Threads

Important Points:

  • We use the Thread class to create a new thread;
  • In order to pass a parameterless method into the thread class, we encapsulate it into a ThreadStart object.
  • A method with parameters can be executed by passing it into the Tread class after encapsulating it into a ParameterizedThreadStart object.
1. What constructor or method is used for creating a new method?
2. Which Thread constructor accepts a method with no parameters?
3. Which Thread constructor accepts a method with parameters?

What constructor or method is used for creating a new method?

Виберіть правильну відповідь

Which Thread constructor accepts a method with no parameters?

Виберіть правильну відповідь

Which Thread constructor accepts a method with parameters?

Виберіть правильну відповідь

Все було зрозуміло?

Секція 3. Розділ 2
some-alt