Process model
=============
-Each process is made of 3 threads: a receiver thread, a computing
-thread, and a load-balancer thread.
+Each process is made of 3 threads: a receiving thread, a computing
+thread, and a load-balancing thread.
-* Receiver thread
- ---------------
+* Receiving thread
+ ----------------
Loop
| wait for a message to come, either on data channel, or on ctrl channel
---------------------
Loop
+ | receive ctrl messages
| call load-balancing algorithm
| send ctrl messages
| sleep (min_lb_iter_duration)
- | receive ctrl messages
+-
send CLOSE on ctrl for all neighbors
wait for CLOSE on ctrl from all neighbors