Re: Tasks - communication
- Posted by useless_ Oct 21, 2012
- 1681 views
jimcbrown said...
DerekParnell said...
I like the D Programming Language's approach to this, namely that all data is assumed to be shared between tasks unless explicitly said otherwise.
Seconded.
Global broadcasts between tasks ate more cpu clocks than narrowcasting. It increased the msg queue for each task, and the overhead in tracking which msgs got delivered and could be deleted to free memory. Memory use sounds trivial until you consider the size of msgs that could have been sent from http.e, for instance.
So i provided for broad- and narrow- casting. You choose your best option for the app you are currently coding. Sue me.
useless