但作为编程问题,进程或资源是否是“主动”方就不是特别重要(只要确保您理解了您的意图)。
But as a programming matter, it does not matter greatly whether a process or a resource is the "active" party (just make sure you understand your intention).
如果中间件有足够的智能,能够理解您的意图,那么系统管理成本将大大减少,而且管理起来也容易得多。
If the middleware could be smarter and could understand your goals, then the systems could be both cheaper and easier to manage.
但这样您会无法理解锁定和原子性的全部意图,这些明确显示了使用内存约束的必要性。
But then you lose the whole purpose of locking and atomicity, which clearly shows the necessity of using the memory constraint.
应用推荐