
Of course, there are other possibilities depending of the creativity of the developer.Īs we know, using multiple threads allows running a few tasks on the same program. Or maybe changing the text of a label that shows the current status. A common way to do this is filling a progress bar. Typically we also need to think about a way to show users that something is working in the background. Threading ensures that the code of operations with long working duration keeps doing its job while acting on the UI still possible: it could be clicking on some buttons, writing some text in a textfield or even opening a file dialogue. Threading is a great solution to these situations. You have to imagine that our customer doesn’t have a developer’s mindset and will not wait more than 5 seconds if the app freezes. As developers we need to avoid such scenarios because we want to keep the interaction between the user and the app constant while it’s in use.

Many times, when we create a desktop application which is doing huge processes, it happens that the responsiveness of our app can be interrupted for few seconds.
