Python multiprocessing using a While loop?
<p>I am trying to understand why the second function does not get called, are you not able to use While loop with multiprocessing? If anyone has any advice, it would be much appreciated!</p>

<pre><code>import multiprocessing
import time

from multiprocessing import Pool

def func_ONE(data):
    while True:
        print 'Func ONE'
        print str(data)
        time.sleep(10)

def func_TWO(data):
    while True:
        print 'Func TWO'
        print str(data)
        time.sleep(10)

def worker(params):
    param1, param2 = params
    if param1:
        func_ONE(param1)
    if param2:
        func_TWO(param2)

data1 = 'bob'
data2 = 'joe'

if __name__ == '__main__':
    params = zip([data1], [data2])
    pool = multiprocessing.Pool()
    results = pool.map(worker, params)
</code></pre>