• Post Reply Bookmark Topic Watch Topic
  • New Topic

writing to socket

 
Haris Karameh
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is socekt OutputStream synchronized.
I have to make two threads writing the same socket.
Should I make this piece of code synchronized or it is already taken care of by the socket output stream?
Tnx
Haris
 
Stan James
(instanceof Sidekick)
Ranch Hand
Posts: 8791
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The abstract OutputStream has no synchronization. What concrete class or wrapper would you use?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!