Creating and Using Threads
Video Player is loading.
Loaded: 0%
Current Time 0:00
/
Duration -:-
- , opens subtitles settings dialogsubtitles settings
- , selectedsubtitles off
1x
- 2x
- 1.5x
- , selected1x
- 0.5x
This is a modal window.
The media could not be loaded, either because the server or network failed or because the format is not supported.
Beginning of dialog window. Escape will cancel and close the window.
End of dialog window.
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 aParameterizedThreadStart
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?
Tudo estava claro?
Obrigado pelo seu feedback!
Seção 3. Capítulo 2
Pergunte à IA
Pergunte à IA
Pergunte o que quiser ou experimente uma das perguntas sugeridas para iniciar nosso bate-papo