The threading module provides an easy way to work with threads. Its Thread class may be subclassed to create a thread or threads. The run method should contain the code you wish to be executed when the thread is executed.
N. Repčić, I. Šarić, and V. Avdić. Proceedings of the 16th International Research/Expert Conference „Trends in the Development of Machinery and Associated Technology” TMT 2012, page 511-514. Dubai, United Arab Emirates, (2012)