[erlang-questions] writing a linked in driver by hand or using a tool.
Tue Aug 10 18:02:31 CEST 2010
> NIF's allow you to create threads. So you can just create a worker
> thread when the NIF is loaded. When calling a NIF function from
> Erlang, you just push the request onto a queue for the thread and let
> the thread handle it and send the response back to the requesting pid.
This is the question: which is the best way to add queue for thread?
Don't forget, that thread may block when there is nothing to handle
and resume, when new task appears.
More information about the erlang-questions