This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author tomer70
Recipients tomer70
Date 2015-11-18.14:04:58
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1447855498.22.0.263851728204.issue25656@psf.upfronthosting.co.za>
In-reply-to
Content
Hi,
In multiprocessing.dummy module I noticed when you send a zero-length iterator to pool.map it hang forever,

Code example:

import urllib2 
from multiprocessing.dummy import Pool as ThreadPool

def start_multithreading_urlopen(threads_num):

    pool = ThreadPool(threads_num)
    results = pool.map(urllib2.urlopen, [])
    pool.close() 
    pool.join()

    # hang here

    print results

I think it related to Issue6433 that was fixed on multiprocessing module with simple length check
History
Date User Action Args
2015-11-18 14:04:58tomer70setrecipients: + tomer70
2015-11-18 14:04:58tomer70setmessageid: <1447855498.22.0.263851728204.issue25656@psf.upfronthosting.co.za>
2015-11-18 14:04:58tomer70linkissue25656 messages
2015-11-18 14:04:58tomer70create