jjzjj

nextPipeline

全部标签

GoLang printf 什么都不显示,即使在使用 time.Sleep 之后

这个问题在这里已经有了答案:Whyismygoroutinenotexecuted?[duplicate](2个答案)关闭6年前。我一直在想为什么retiredOpCode函数中的fmt.Print不起作用。不过,dispatchOpCode函数中的fmt.Print工作正常。下面的代码是完整的代码(您可以尝试从goplayground运行)并且dispatchOpCode函数中的fmt.Print正在运行。packagemainimport("fmt""time""math/rand")varmaxPipeline=3//MaxPipelinevarmaxNumber=5//MaxN