在 Windows 中使用 fork 和 Ruby [英] Using fork in Windows with Ruby
本文介绍了在 Windows 中使用 fork 和 Ruby的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
当我在 Windows 上调用 Kernel.fork()
时,出现此错误:
在 Windows 上是否有替代的 fork 方法?
解决方案
尝试 spawn()
- 它是为 Windows 实现的.
When I call Kernel.fork()
on Windows, I get this error:
!! Unexpected error while processing request: fork() function is unimplemented on this machine
Is there an alternative way to fork while on Windows?
解决方案
Try spawn()
- it's implemented for windows.
这篇关于在 Windows 中使用 fork 和 Ruby的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文