On Tuesday, 28 June 2016 at 20:24:33 UTC, Steven Schveighoffer wrote:
On 6/28/16 4:12 PM, luminousone wrote:

Is puts high enough latency that, that main thread can fill the message queue faster then start can exhaust it? If you put a call to sleep for
1ms in the main loop does it have the same result?

I think this is it. Your main loop is doing very little, basically just allocating memory. The child thread is putting data to the console, which is much more expensive.

Is the message queue unlimited by default? Use this then:

https://dlang.org/phobos/std_concurrency.html#.setMaxMailboxSize

?


Reply via email to