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.
我的问题很简单。
如果一个进程调用monitor并且不调用demonitor并且死了。对系统有副作用吗?以后有什么问题吗?
monitor
demonitor
不,当一个进程死亡时,它的所有资源都将被释放。
我在 Ruby on Rails 中构建了一个小型 Twitter 克隆。它有一个用户模型、一个微博模型和一个关系模型。关系模型存储关注的用户 ID 和相应的关注用户 ID。我正在尝试添加一个新按钮,使当前用户在他们的微帖子中使用匹配参数关注所有其他用户。我已将该参数添加到 micropost 模型中。问题是,当我在 micropost 模型中查询数据库以查