You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What is the best practice for running the following parallel task:
while (true) {
var server : Socket = serverSocket.accept();
var in = new DataInputStream(server.getInputStream());
eventListener.messageReceived(in.readUTF());
server.close();
}
Use of in or every seems to not be the good semantic from my point of view.
Perhaps functions are missed in the Shedules capacity:
What is the best practice for running the following parallel task:
Use of
in
orevery
seems to not be the good semantic from my point of view.Perhaps functions are missed in the
Shedules
capacity:We may also consider to propose an "infinite loop" running mechanism for ensuring thread balancing:
This function will create the runnable like this:
The text was updated successfully, but these errors were encountered: