In this example, the orange resource was required to do Step 3 in Workflow a, only because there was a portion of Step 3 that needed an advanced level of multi-threaded Java design.
在这个例子中,工作流程中的“桔红色”资源需要在步骤3中使用,这仅仅是因为步骤3的一部分需要高水平的多线设计。
This specific example is but one of several design decisions and tradeoffs that we are forced to make when doing multi-threaded programming.
所谓“两害相权取其轻”,当我们进行多线程编程时,就必须在多个设计决策与权衡中做出一个选择。
应用推荐