Explanation of need for Multi Threading GUI programming

后端 未结 3 2106
清歌不尽
清歌不尽 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

    Your understanding is correct. If an application isn't muli-threaded the application waits for every operation to finish. When your application is multi-threaded you use one thread to handle GUI actions and another to process the files.

    I don't have an article or a reference to something similar. Maybe it helps if you think of threads as people, each has it's own job and each can only do one thing at a time.

提交回复
热议问题