Yap always a favorite by Jesper Louis Andersen<p>By the way, Erlang as of next release (19) will have dirty schedulers. That will make it even easier to integrate blocking C modules into Erlang VM. Can do it now of course but to do it right have to do your own thread + queue + locking to avoid blocking schedulers.<p>Here is article from same author about it:<p><a href="https:&#x2F;&#x2F;medium.com&#x2F;@jlouis666&#x2F;erlang-dirty-scheduler-overhead-6e1219dcc7#.hsn4pc47e" rel="nofollow">https:&#x2F;&#x2F;medium.com&#x2F;@jlouis666&#x2F;erlang-dirty-scheduler-overhea...</a><p>Checkout more of his writings:<p><a href="https:&#x2F;&#x2F;medium.com&#x2F;@jlouis666" rel="nofollow">https:&#x2F;&#x2F;medium.com&#x2F;@jlouis666</a>