참고:파이썬을 사용한 실전 스레드 프로그래밍
1. hello thread example
import threading
import datetime
class ThreadClass(threading.Thread):
def run(self):
now = datetime.datetime.now()
print "%s says Hello World at time: %s" % \
(self.getName(), now)
for i in range(2):
t = ThreadClass()
t.start()
|
Thread 이용은 참고 사이트를 이용해서 봐야 할 것 같다.
LIST
'Python and Django' 카테고리의 다른 글
| PIL을 이용한 그리기 part. 1 (0) | 2012.09.06 |
|---|---|
| PIL을 이용한 이미지 편집 part.1 (0) | 2012.09.05 |
| NON-ASCII character `\xec` in file 에러 발생 해결책 (0) | 2012.05.17 |
| CSRF verification failed. Request aborted. (0) | 2012.05.16 |
| 장고 DB 구조 설계 샘플 테스트 오류 수정 방법 (0) | 2012.05.15 |