I'm working with Julia.
There is a networking library: ZeroMQ.
What I need is to create a julia project which can receive multi-zeroMQ-sockets. Here is a simple explanation:
s1 = Socket();
ZMQ.bind(s1, ip1:port1);
s2 = Socket();
ZMQ.bind(s2, ip2:port2);
s3 = Socket();
ZMQ.bind(s3, ip3:port3);
ZMQ.recv(s1, msg0, 0); // it's blocking
ZMQ.recv(s2, msg1, 0); // it's blocking
ZMQ.recv(s3, msg2, 0); // it's blocking
So here I have three blocking recv, meaning that I should have a new thread for each of them.
But I don't know how to play multithreading with Julia.