How would I design and implement a non-blocking memory mapping module for node.js
问题 There exists the mmap module for node.js: https://github.com/bnoordhuis/node-mmap/ As the author Ben Noordhuis notes, accesing mapped memory can block, which is why he does not recommend it anymore and discontinued it. So I wonder how would I design a non-blocking memory mapping module for node.js? Threading, Fibers, ? Obviously this nearby raises the question if threading in node.js would just happen elsewhere instead of the request handler. 回答1: When talking about implementing some native