I'm writing an Java application that runs multiple threads the same time. So, I want each thread to print its status to console: one line per thread, like:
Total threads: %d
Thread-1: Progress - %d%
Thread-2: Progress - %d%
Thread-3: Progress - %d%
Thread-9: Progress - %d%
When the thread ends his job, the line removes. Every new thread adds one more line to status bar.
Each line updates every 5 secs, so, the percentage value increases.
Is there a way to make dynamic status like this?