我的流程发生了什么?
下面的过程仍然存在,但实际的代码已经完成。我该如何确保该过程结束?
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
root 8100 90.4 3.4 13364 8956 ? Rl Jun07 2335:22 ruby haccts.rb
我发现了 R
和 l
代表什么:
R Running or runnable (on run queue)
l Multi-threaded (using CLONE_THREAD, like NPTL pthread do)
The following process is still alive, but the actual code has finished. How do I go about making sure the process gets ended?
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
root 8100 90.4 3.4 13364 8956 ? Rl Jun07 2335:22 ruby haccts.rb
I found out what R
and l
stand for:
R Running or runnable (on run queue)
l Multi-threaded (using CLONE_THREAD, like NPTL pthread do)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
不确定 Ruby,但在大多数编程语言中,您可以在程序末尾添加
return 0;
。我认为这类似于 Ruby 中的 Process.Exit() 。Not sure about Ruby, but in most programming languages, you add
return 0;
at the end of the program. I think it was something likeProcess.Exit()
in Ruby however.