コード例 #1
0
ファイル: benchmarks.py プロジェクト: zzhaozeng/newspaper
def mthread_run(urls):
    """download a bunch of urls via multithreading"""

    # print 'beginning batch job for async io, %s threads running' % activeCount()
    reqs = multithread_request(urls)
    resps = [req.resp for req in reqs]
コード例 #2
0
def mthread_run(urls):
    """download a bunch of urls via multithreading
    """
    reqs = multithread_request(urls)
    resps = [req.resp for req in reqs]
コード例 #3
0
ファイル: benchmarks.py プロジェクト: RajkumarAnugu/newspaper
def mthread_run(urls):
    """download a bunch of urls via multithreading
    """
    reqs = multithread_request(urls)
    resps = [req.resp for req in reqs]
コード例 #4
0
ファイル: benchmarks.py プロジェクト: michaelhood/newspaper
def mthread_run(urls):
    """download a bunch of urls via multithreading"""

    # print 'beginning batch job for async io, %s threads running' % activeCount()
    reqs = multithread_request(urls, num_threads=1)
    resps = [req.resp for req in reqs]