Creating and Using Threads
Important Points:
- We use the
Threadclass to create a new thread; - In order to pass a parameterless method into the thread class, we encapsulate it into a
ThreadStartobject. - A method with parameters can be executed by passing it into the
Treadclass after encapsulating it into aParameterizedThreadStartobject.
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?
¿Todo estuvo claro?
¡Gracias por tus comentarios!
Sección 3. Capítulo 2
Pregunte a AI
Pregunte a AI
Pregunte lo que quiera o pruebe una de las preguntas sugeridas para comenzar nuestra charla
Awesome!
Completion rate improved to 3.7
Creating and Using Threads
Desliza para mostrar el menú
Important Points:
- We use the
Threadclass to create a new thread; - In order to pass a parameterless method into the thread class, we encapsulate it into a
ThreadStartobject. - A method with parameters can be executed by passing it into the
Treadclass after encapsulating it into aParameterizedThreadStartobject.
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?
¿Todo estuvo claro?
¡Gracias por tus comentarios!
Sección 3. Capítulo 2