How to interrupt an Infinite Loop

前端 未结 12 2009
自闭症患者
自闭症患者 2021-02-02 10:36

Though I know it\'ll be a bit silly to ask, still I want to inquire more about the technical perspective of it.

A simple example of an infinite loop:

pub         


        
12条回答
  •  半阙折子戏
    2021-02-02 10:56

    Your kind of problem looks like a Threading problem. But still, it is now a a good practice to include a stopping flag even in threads

提交回复
热议问题