How to Use Python to Run an App in a New Process: Best Practices?

18 Replies, 1723 Views

Wow, thanks everyone for the awesome advice! I tried using `multiprocessing` with `daemon=True`, and it’s working like a charm so far. I also added a try-except block for cleanup, and it’s handling errors pretty well.

Quick follow-up though—anyone know if there’s a way to pass large data between processes without hitting performance issues? I’ve heard about `multiprocessing.Queue`, but not sure if it’s the best for big datasets.

Thanks again, you all rock!

Messages In This Thread



Users browsing this thread: 1 Guest(s)