python - parallel processes with arguments -


I am working on Google App Engine, and I did something like this before:

 < Code> queue = multiprocessing.Queue () cs = multiprocessing.process (name = 'control_service', target = control_service_func, args = (qi,)) cs.daemon = true m = multiprocessing.process (name = 'machine', target = Machine_func, args = (qi,)) m.daemon = True cs.start () m.start ()  

but then realized that the Google engine does not support multiplexing modules ..

So I need some other tools .. I saw that for parallel processes, I got Popen Yoga can be done but all the examples are:

  Popen (['/ bin / sh', '-c', algés [0], algés [1], ...] )  

which runs a command as if it was from a shell ...

I need to run 2 parallel processes, each of which, its Self-work (goal in my example, which is found in the form of an argument)

How can I do this?

The app is its own processing model of Egan E - which has its own line (two types, in fact: "Push" queues, and "bridges"). To complete the requests on that line, use a push queue (simple, and fully managed by the app engine back-end) and Module - and depending on the load of your work But you can use transparently multiple servers and C (app engine will take care of this scaling for you).

If you get some (automatic scaling and structure), then you lose something if the tradeoff for you is not correct, then the app engine (or other power set-up) is not the best for you You can - unmatched an MASS set, like Google's Compute engine instead.


Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -