Relative Content

Tag Archive for pythonmultithreading

How to use “threading” in python in an unblocking way?

I have a complete “working” python code which is supposed to contain two threads which run simultaneously, which populate some lists in a dict, and when the user presses CRTL-C these two threads should be stopped and some output from both threads should be written to a file: