java share data between thread
        Posted  
        
            by 
                ayush
            
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by ayush
        
        
        
        Published on 2011-03-04T07:23:19Z
        Indexed on 
            2011/03/04
            7:24 UTC
        
        
        Read the original article
        Hit count: 415
        
i have a java process that reads data from a socket server. Thus i have a BufferedReader and a PrintWriter object corresponding to that socket.
Now in the same java process i have a multithreaded java server that accepts client connections. I want to achieve a functionality where all these clients that i accept can read data from the BufferedReader object that i mentioned above.(so that they can multiplex the data)
How do i make these individual client threads read the data from BuffereReader single object? Sorry for the confusion.
© Stack Overflow or respective owner