Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
Tags
- Oracle
- ubuntu
- 부모창
- MySQL
- 확장자
- centos
- install
- replace
- JavaScript
- TPL
- TextBox
- 문자열자르기
- 천단위
- smarty
- i18n
- php
- 한글 깨짐
- Eclipse
- Selectbox
- RabbitMQ
- Python
- jQuery
- 일괄변경
- Postfix
- SVN
- random
- mariadb
- docker
- yum
Archives
- Today
- Total
목록파이썬 (1)
wilson's story
multiprocessing , thread 사용하기
여러개의 thread를 사용하면서 각각에서 반복문이 동작을 해야하는 경우 하단의 소스와 같이 사용하시면 됩니다 import threading def threadTest(val): while True: print(val) def processTest1(): test = "1" thread = threading.Thread(target=threadTest, args=(test,)) thread.start() def processTest2(): test = "2" thread = threading.Thread(target=threadTest, args=(test,)) thread.start() if __name__ == '__main__': processTest1() processTest2() 아래와 같이 사..
Python
2019. 11. 15. 14:50