Well, remember with the MVC model, all execution goes through the controller, the views themselves are not runnable.
是的,请务必谨记在MVC模型中,所有的执行都要经过控制器,视图自身是不能运行的。
This scenario only occurs when the class calling the interruptible method is part of a Thread, not a Runnable or general-purpose library code, as illustrated in Listing 5.
只有当调用可中断方法的类是 Thread 的一部分,而不是 Runnable 或通用库代码的情况下,才会发生这样的场景,清单 5 演示了这种情况。
When a setter (a member function that updates a field) of a class that implements the Runnable interface is not synchronized, then you should document your reasons why.
如果实现Runnable接口的类的setter(更新字段的成员函数)没有同步,则应该写明原因。
应用推荐