multithreading - What is the potential issues of using fibers in node.js? -
i planning experiment use of fibers in node.js? potential issues should consider? looks fibers opposite of nice design of simplicity of event-loop , single thread design of node.js.
bad programming! fibers put control programmer's hand can decide in code explicitly yield , gives cpu cycles other fibers. need protect critical sections of code if yield, if not doing right protect critical sections, things may go wrong.
if fiber using callback blocking eventloop, run starvation, not specific fibers happens w/o fibers.
Comments
Post a Comment