I have 2 threads that want to invoke:
multicastSocket.send(dP1)
and
multicastSocket.send(dP2)
respectively, where dP1
and dP2
are different DatagramPacket
objects, and multicastSocket
is the shared instance of MulticastSocket.
I don't understand if concurrency problems may happen on multicastSocket,
if the threads call send()
in the same moment.