I am interested in such a question: there is a stream in it, a certain collection, there are several streams that perform certain actions, it is necessary to add data to the collection from the streams, while the streams will not have the TERMINATED state while the program is running. link to the collection?
class classname static Map map; class job1 thread1-> { .... classname.map.add(...)....} class job1 thread2-> { .... classname.map.add(...)....}