Results 1 to 2 of 2
  1. #1
    gabriel is offline Member
    Join Date
    Jul 2007
    Posts
    41
    Rep Power
    0

    Default HashMap to share OutputStream

    Can I use an object HashMap in order to share OutputStream, which are associated to communication by socket, between threads?

  2. #2
    tommy is offline Member
    Join Date
    Jul 2007
    Posts
    41
    Rep Power
    0

    Default

    You need synchronization on your input stream. For socket multiplexing, consider using java.nio package.

Similar Threads

  1. Got an Idea, Just Share it!
    By james in forum Java Software
    Replies: 0
    Last Post: 03-18-2008, 01:09 PM
  2. Converting InputStream to OutputStream
    By Java Tip in forum Java Tip
    Replies: 1
    Last Post: 01-11-2008, 11:13 PM
  3. Replies: 0
    Last Post: 12-19-2007, 12:47 PM
  4. what is hashmap
    By gabriel in forum New To Java
    Replies: 5
    Last Post: 08-03-2007, 02:23 PM
  5. i want some j2EE experience guys share their exp.
    By jugal in forum Advanced Java
    Replies: 0
    Last Post: 07-17-2007, 04:02 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •