Is a function called within a thread still in the thread?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By orosmatthew

Basically, if I have something like

thread.start(self,'func1',arg)
func func1(arg):
    func2(arg2)

func func2(arg2):
    print("Hello")

Is that printed “Hello” still in the thread that was created or is it called on the main thread. I’m pretty new to threading so if I am misunderstanding something please let me know.
Thanks,

  • Matthew
:bust_in_silhouette: Reply From: rojekabc

You are still inside a thread.