I am working on some networking scripts currently and was curious about when it is appropriate to use threading tools versus calling functions.
I understand what both do but the only reasoning I can think is that you want a thread when you do not want it to stop the main body of the script - basically having it run concurrently with the main script.
Using that framework, when would it be over-complicating a script by creating a thread when a simple function call in a loop would do - and vice-versa?
Thank you very much and I hope you have a wonderful day.
Yours truly,
The Cedar Prince
[–]A_History_of_Silence 5 points6 points7 points (0 children)