Opa!
Então pessoal, eu estou fazendo um HelloWorld de Threads e notei
que após o programa rodar, no console do eclipse ele não aparece
como terminado até eu clicar no Terminate.
O que eu deixei de fazer?
class Principal {
public static void main(String[] args) {
MeuBuffer buffer = new MeuBuffer();
ThreadInsere insere = new ThreadInsere(buffer);
ThreadRemove remove = new ThreadRemove(buffer);
Thread threadA = new Thread(insere);
Thread threadB = new Thread(remove);
threadA.start();
threadB.start();
}
}
Obrigado,
[]s!