W metodzie main dodaj 5 wątków do statycznej listy. Każdy wątek musi być nowym obiektem Thread, który współpracuje z jego własnym obiektem SpecialThread.
Lista i kilka wątków
- 9
Niedostępne
Komentarze (1)
- Popularne
- Najnowsze
- Najstarsze
Musisz się zalogować, aby dodać komentarz
Jaki Taki
19 kwietnia 2021, 18:03
The correct solution when checked in intellij does not trigger the run method of the SpecialThread class so the fifth requirement is not met so how come this is the right solution? In order to make it look the same like the preferred solution I had to remove the start method from each Thread object
0