Channel thread safty

31 views
Skip to first unread message

PS

unread,
Sep 20, 2016, 2:26:13 PM9/20/16
to Netty discussions, 孙佩
Hi Netty users, 
     Is it safe to write to a channel from multiple threads via Channel#write?

Pei

Norman Maurer

unread,
Sep 20, 2016, 4:25:44 PM9/20/16
to ne...@googlegroups.com
Yes
--
You received this message because you are subscribed to the Google Groups "Netty discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email to netty+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/netty/d8b865e0-8b78-466a-894e-3c8b8c66955b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

pe...@alluxio.com

unread,
Sep 20, 2016, 5:12:28 PM9/20/16
to Netty discussions
Hi Netty experts,
    Is it safe to write to a channel from multiple threads concurrently? I am not worried about the ordering of the messages actually written but worried about whether the data will be corrupted.
 
Thread1: channel.write(msg1); with some listener 
Thread2: channel.write(msg2); with some other listener.
 
Thanks
Pei

Norman Maurer

unread,
Sep 20, 2016, 5:13:42 PM9/20/16
to ne...@googlegroups.com
its supported

--
You received this message because you are subscribed to the Google Groups "Netty discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email to netty+un...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages