Код: Выделить всё
class Thread1 extends Thread{
int[] count;
int[] event;
Thread1(int[] event, int[] count){
this.event=event;
this.count=count;
}
public void run(){
for(int i=0; i
Подробнее здесь: [url]https://stackoverflow.com/questions/60164127/multithreading-in-java-not-working-as-expected[/url]