Python Multithreading missing data
问题 useI am working on a python script to check if the url is working. The script will write the url and response code to a log file. To speed up the check, I am using threading and queue. The script works well if the number of url's to check is small but when increasing the number of url's to hundreds, some url's just will miss from the log file. Is there anything I need to fix? My script is #!/usr/bin/env python import Queue import threading import urllib2,urllib,sys,cx_Oracle,os import time