开发者

Why the cancelation of eclipse update is so slow?

Cancelation of eclipse update would take 3-4 minutes, Why?

Why the cancelation of eclipse update is so slow?

Thank开发者_运维技巧s.


Any time software has a cancel button it is not (usually) killing the process/thread that you are working on. You can see this same cancel (and wait) behavior in many applications. This is why the Mac has Force Quit and Windows has Exit Now for applications that don't seem to be quiting.

So at the code level, why this is happening is that you have likely only set a flag that says, "stop doing this once you're done with whatever loop you're in right now". What happens is that you set the flag, but the loop is nowhere near complete and doesn't check every once in a while that the cancel flag has been triggered. So there likely isn't much you can do about it besides download the source code and submit a patch.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜