Skip to content

Instantly share code, notes, and snippets.

View iChenwin's full-sized avatar
🛴

Wayne Chen iChenwin

🛴
View GitHub Profile
@iChenwin
iChenwin / python_multithreading_queue.py
Last active July 26, 2017 10:18 — forked from yosemitebandit/ibm_queue.py
IBM's python threading example with Queues
#!/usr/bin/python
# -*- coding: utf-8 -*-
import Queue
import threading
import urllib2
import time
hosts = ['http://yahoo.com', 'http://google.com', 'http://amazon.com',
'http://ibm.com', 'http://apple.com']