作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
Iron 框架是否支持多线程模式?如何启用和配置它?
最佳答案
默认启用。
Iron
的主要结构是 Iron
,您可以使用 http
或 listen_with
方法启动服务器。
对于 http
:
Defaults to a threadpool of size
8 * num_cpus
.
对于 listen_with
: 签名采用 threads usize
参数:
Kick off the server process with X threads.
我认为 X
代表作为参数传递的线程数。
关于multithreading - 如何在 Iron 框架中启用线程功能?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42664771/
我是一名优秀的程序员,十分优秀!