[erlang-questions] sleep for a few microsconds
Thu Nov 16 08:27:57 CET 2017
I was wondering if there is a way to sleep for few u'sec in erlang . We are
working on Linux. And we have tried following solutions :
1. Used linux 'nanosleep' from a 'C' NIF ::
Gives 50-90% error between 1-500 microsec ... and even at 1500 microsec it
gives 10-20% error . I tried giving high priority to Beam process .. same
2.Busywait in Erlang function ::
Isnt practical to waste CPU time when serving a large number of users
...Also it is only good for about 90% of the time but rest of the time
gives 50-200% error ...
thanks a lot
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the erlang-questions