2 Respostas
+ 2
That's unfortunately not what threading is for. I know if might be a bit confusing as a lot of CS and programming definitions talk about how threads can be used for running things and mix together different definitions of concurrency and parallelism.
Because of the Global Interoreter Lock no two functions will truly run at the same time with threading. If you want to run things in parallel properly look info multiprocessing.
+ 1
Would an example of 2 definitions calling each other whilst encased within a shell definition suit you
https://code.sololearn.com/c89T3J2uh3Iz/?ref=app