将无堆栈线程添加到BSD内核?

时间:2021-01-10 12:59:17

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.

IronPort开发了一种无堆叠线程模型,与传统操作系统支持的100个连接相比,IronPort设备可以支持10,000多个并发连接。

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

如果一个人想做同样的事情但是要开源,他们应该从哪里开始?

2 个解决方案

#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

有一些实现已经可用。只是做一些挖掘,你可以找到它们。最常见的实现之一是在BSD许可下提供:Protothreads

#2


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

你需要的是协程http://www.nightmare.com/~rushing/copython/index.html

#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

有一些实现已经可用。只是做一些挖掘,你可以找到它们。最常见的实现之一是在BSD许可下提供:Protothreads

#2


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

你需要的是协程http://www.nightmare.com/~rushing/copython/index.html