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.
我可以使用CreateThread API 调用和win32-api、windows-api和windows-pr gems 在运行 MRI 的 Windows 上创建本机线程吗?如果是这样,有人可以给我一个例子吗?该线程会正常工作吗?
似乎是不可能的。我最终使用eventmachine在同一个线程上处理多个 I/O 事件。