![]() but i can imagine it being quite slow for very large files. the sing thread test is very fast for small data. two of the steps are each thread to run the "cp" command to copy some data. The real case i have today is genuinely just 2 threads, but 12 critical steps (they absolutely cannot be done out of order or data or security is likely to be lost). likewise, each must wait for both to finish step 2 before starting step 3. but there is enough interrelation (such as exchanging file between the threads) that the threads need to synchronize their steps so that each does not proceed to step 2 until both have completed step 1. the 2 threads have slight variations to do (such carrying out the 3 steps on 2 different files). think of 2 threads each doing 3 tasks in a specific order, 1, 2, and 3. ![]() i do have a script that could benefit from two "step synchronized" threads. I don't understand enough of the thread limitations in Python to know if there would be some kind of blockage or not.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |