Reputation: 11669
does the file which is sent as an argument to execfile runs as an independent process / thread or is the code imported and then executed ? . Also i wanted to know how efficient is it compared to running threads / process .
Upvotes: 2
Views: 868
Reputation: 375604
The file is not run in a separate thread or process, it runs synchronously with the caller.
Upvotes: 2