John Reis(deleted)
|
Qnet connection synchronisation
|
John Reis(deleted)
04/07/2017 6:11 AM
post117614
|
Qnet connection synchronisation
I am developing a small network of devices over Qnet, with one master and several slaves.
The master creates a channel with name_attach, and then creates a pool of threads reading from this channel id, and then
the slaves connect to it with name_open.
The problem is, the sequence in which the devices are powered is not always consistent, and I seem to have trouble when
two slaves are calling a name_open pretty much at the same time (might be that the connection requests are served "
simultaneously" by multiple threads unblocking in the master's thread pool).
So the questions:
Is there any kind of synchronisation that works through the network before actually establishing a connection (some sort
of barrier or signal)? So I could keep the slaves waiting for the master to come alive.
Also, how shall I handle in the master's side the connection requests from the slaves coming with a name_open, so it
supports possible "simultaneous" calls being served by a thread pool in an SMP?
If anyone can give me some insights, I'm already very thankful.
|
|
|