how does execfile() work in python?
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 .
The file is not run in a separate thread or process, it runs synchronously with the caller.
精彩评论