Adding stackless threading to BSD Kernel?

我与影子孤独终老i 提交于 2019-12-23 02:34:30

问题


IronPort developed a stackless threading model that allows the IronPort appliance to support more than 10,000 simultaneous connections in contrast to the 100 connections supported on a traditional OS.

If one wanted to do the same but to make it open source, where should they start?


回答1:


There are some implementations already available. Just do some digging around and you can find them. One of the most prevalent implementations is available under a BSD license: Protothreads




回答2:


What you need is coroutines http://www.nightmare.com/~rushing/copython/index.html



来源:https://stackoverflow.com/questions/904700/adding-stackless-threading-to-bsd-kernel

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!