Possible Duplicate:
How do I connect a Python and a C program?
I have a C program that takes two args and outputs a number.
./a.out 2 3 (for example). It does some computational expensive operations, so I was wondering could I use Python’s multiprocessing library to run a bunch of the C programs and then compile all the numbers into a list or table or some data structure?
Thanks,
This is not a duplicate because my questions is how can i do it IN PARALLEL EX. MANY THREADS!
To call from python: