[erlang-questions] Erlang and fsync
Lukas Larsson
lukas@REDACTED
Wed Aug 6 15:47:32 CEST 2014
On Wed, Aug 6, 2014 at 3:40 PM, Scott Lystig Fritchie <fritchie@REDACTED
> wrote:
> Lukas Larsson <lukas@REDACTED> wrote:
>
> ll> Â As stated in this thread there is no way to do this
> ll> cross-platform, so if you need this functionality and it is
> ll> available on your OS I would suggest writing a small nif.
>
> To avoid angering the reduction-based-scheduling-gods-that-**will**-
> smite-you-if-you-really-do-this, your NIF is no longer so small because
> you'll need to do your own thread pool management + use the NIF to
> initiate the sync + message passing when the pool has finished work.
>
> Or you pass the work to a new-fangled dirty scheduler?
>
>
I knew there was a reason why I tend to write linked-in drivers rather than
nifs :) yes you would have to/want to put the call in a dirty scheduler or
run your own threading orchestra.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20140806/8bac333c/attachment.htm>
More information about the erlang-questions
mailing list