Let's say a server thread notifes multiple clients that it has data ready and the clients immediately react to the notification by asking for data via an interface function: What actually happens?
My guess is, that the server finishes whatever code section it was running when notifying the clients, in a select() statement that would be until break;
Now the server has multiple requests. I guess it just handles the requests one after another, as
Code: Select all
case some_interface[int i].some_function():
do_something();
break;
Code: Select all
case some_interface0.some_function():
do_something(0);
break;
case some_interface1.some_function():
do_something(1);
break;
[..]