A simple scenario here,
I have a thread (let's call it A) that writes to terminal indefinitely(using System.out
)
I need to somehow retrieve those information from another Thread (let's call it B).
The problem is that A and B cannot communicate in any other way.
So is there a way that B can retrieve those information from terminal?
Note: This is a prototype I'm designing. thread A can be any other process and not necessarily written in Java, it just runs on a terminal indefinately