Posts by V. Azzone • 1 point
1 post
-
0
votes1
answer321
viewsQ: Running code snippets in parallel
Hello, I wanted to know how to run one thread after another for a certain time, for example: Thread x = new Thread(() -> { // qualquer código, pode ter até um while(true)... }); Thread x2 = new…