Se leggi il javadoc del metodo toString() di Thread, ti dice:

codice:
public String toString()
Returns a string representation of this thread, including the thread's name, priority, and thread group.

Overrides:
toString in class Object
Quindi, 'Produttore 0' è il nome del thread (assegnato dal programma), 5 è la priorità (corrispondente a Thread.NORM_PRIORITY), e 'main' è il gruppo a cui appartiene il thread.

Ciao,