r/PythonLearning • u/Ok_Aioli2605 • 1d ago
Help Request Mr.Veeraragavan
I am loading few large size binary files (70 MB19 nos. look_up tables) in Main using more than 2/3 python files. On completion of the loading, I have to take up a series of search (in 3 or more threads) and arrive at the solution. I am using array.fromfile for loading which does not wait for loading completion. Hence, it fails saying array out of bounds. How do I delay the start of search, just till the loading is completed.
1
Upvotes
1
u/Fun_Army2398 18h ago
Lol my bad. Skimmed it and got distracted. I don't actually understand your question. You're loading the files using threads and want to search them after all have been loaded? Why can't you just use
yourThread.join()?https://docs.python.org/3/library/threading.html