Explanation of need for Multi Threading GUI programming

后端 未结 3 2101
清歌不尽
清歌不尽 2021-02-08 15:44

I\'m looking for a good explanation of the need to use multi-threading in graphical applications. In the examples below Python is used but the question is not python specific it

3条回答
  •  孤街浪徒
    2021-02-08 16:33

    Multithreading is one way of approaching this, but not necessarily the only (or best) way. As a python example, greenlets provide a way of running concurrent processes within the same thread, avoiding the problems with locking associated with multithreading. I would certainly consider greenlets to be a preferred solution in most cases simply because of the relative ease of coding them.

提交回复
热议问题