Reputation: 675
So as we know, Python doesn't have real threading because of the GIL
(unless you go the Cython route and detach) but i can't seem to find info or documentation on a usecase.
If from my python script i run a Popen
with the commands [dotnet test .....]
and that code supports the native C# threads and processes and all of that, will my Python subprocess execute as native C# and handle as many threads as the script needs to or is it locked behind 1 process and 1 thread?
Upvotes: 0
Views: 87
Reputation: 94891
Any sub-process you launch with Popen
will behave as it normally does. Python's threading model won't be inherited by a non-Python process when you launch it from within a Python process.
Upvotes: 1