def fbstatus(count):
    """Returns the address, and True if the ping returned in under 5 seconds or
    else False"""
return count, requests.get('http://www.facebook.com/status.php').status_code

def ping(address):
    """Returns the address, and True if the ping returned in under 5 seconds or
    else False"""
return address, not subprocess.call(['ping', '-c1', '-W5', address], stdout
    =null)
pool = multiprocessing.Pool(15)
if False:
    print(pool.map(ping, addresses))
else:
    pool.map(fbstatus, list(range(1000)))
Нужно пинговать 1000 URL каждые 2 минуты