回忆一下,我们编写了3块代码:任务代码、加载器和聚合器。
As you'll recall, there were 3 pieces of code to write: task code, a loader, and an aggregator.
这样做,你必须指定点的任务代码中的线程可以切换到另一个任务。
To do that, you have to specify the points in task code where the thread is allowed to cut over to another task.
接下来我甚至会进一步运行测试用例,尽管我知道它们将失败,因为我没有为该类编写任务代码。
Then I would even take it a step further and run the test cases, even though I know they will fail because I haven't actually written any of the code for it.
So my challenge to you, and I know Professor Guttag can do this, my challenge to you is, a year from now, come back and look at code you wrote here.
因此我这里有个具有挑战性的任务,我知道Guttag也可能会说这个任务,我的这个任务就是,一年以后,回头来看,你之前写过的代码。
应用推荐