Feb-09-2024, 12:56 AM
i am refactoring a program that dynamically runs many processes at the same time. these processes are other programs (often to download, upload, compress, or uncompress something). a 2nd process runs for each "task" to start those process and wait for them to finish (or restart them if soft errors happen). this means each task is running 2 processes. i am hitting process limits too early. so i am thinking about threads to run the control logic for each task. but this would mean launching processes from threads which i recall reading that is not supported. can someone tell me of the current status of and if a newer version of Python3 can now do this. if not, i am thinking to have an extra process that does all the process work (launching, waiting) based on requests via pipes and sending responses back via a pipe. maybe there would be a pipe per task or the task ID is sent with each message over the pipe. ideas? FYI, i have done similar in C w/o threads.
Tradition is peer pressure from dead people
What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.