Essentially, any process or thread can be dispatched to run on any processor, except for processors or threads that are bound to run on a specific processor.
从本质上讲,任何进程或线程都可以分派到任意处理器上运行,但绑定在特定处理器上运行的处理器或线程除外。
The exception is also sticky to the thread in the sense that the user must explicitly clear the exception; otherwise it remains bound -- termed pending -- to the thread.
该异常也会困扰 线程,用户必须显式地清除异常;否则它会一直困扰(术语为 pending)线程。
Typically, the act method contains a loop that will repeat forever and then calls either react (for a lightweight actor) or receive (for a heavyweight actor that remains bound to its thread).
通常act方法包含一个无止境重复的循环,然后调用react(面向轻量级actor)或receive(面向仍然与其线程绑定的重量级actor)。
应用推荐