Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Erlang 运行时如何在类 UNIX 系统上实现用户空间多线程机制?
getcontext(2)它是使用类似的东西实现的longjump(3)吗?
getcontext(2)
longjump(3)
任何相关文件将不胜感激。
每个 Erlang 进程只是一个结构,其中包含一个堆和一个堆栈。所以切换过程只是在队列中使用另一个结构的问题。我认为这篇论文很好地描述了它。