Aug-20-2017, 08:42 PM
Thank you Snippsat. It is really helpful. I add a thread class in my test program posted and seems working great. So I modify my real program. The program has a timer and fire/run the function every 5 minutes. So I create a single thread to run this function. It run ok in first 5-minute period but it crashes in second run. I search Internet and found the following can solve the crash problem. I install dask ok but still get error for import dask. I use python 3.6.1 64bit on Windows 10. Thanks.
import dask dask.set_options(get=dask.async.get_sync)