This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author twoone3
Recipients mark.dickinson, ronaldoussoren, twoone3
Date 2021-02-20.01:04:54
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1613783094.69.0.0415881184035.issue43263@roundup.psfhosted.org>
In-reply-to
Content
Sorry, I didn't make the question clear yesterday.
My operating system is Windows and the compiler used is VS2019. My project address: https://github.com/twoone-3/BDSpyrunner
When I use Python.dll to import Python files, the program is stuck. After checking, I found that as long as I use multi-threading, the program will be stuck. Of course, this Python file can be directly run by Python.exe, but from  My program cannot run normally when calling Python.dll

The file:
import threading
import time
 
def worker():
     print "worker"
     time.sleep( 1 )
     return
 
for i in xrange ( 5 ):
     t = threading.Thread(target = worker)
     t.start()
History
Date User Action Args
2021-02-20 01:04:54twoone3setrecipients: + twoone3, ronaldoussoren, mark.dickinson
2021-02-20 01:04:54twoone3setmessageid: <1613783094.69.0.0415881184035.issue43263@roundup.psfhosted.org>
2021-02-20 01:04:54twoone3linkissue43263 messages
2021-02-20 01:04:54twoone3create