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 | 29 | 30 |
Tags
- mariadb
- Postfix
- php
- JavaScript
- TPL
- replace
- yum
- RabbitMQ
- centos
- MySQL
- random
- install
- smarty
- docker
- i18n
- 문자열자르기
- 확장자
- jQuery
- 한글 깨짐
- TextBox
- Eclipse
- 부모창
- ubuntu
- Selectbox
- Python
- Oracle
- 일괄변경
- SVN
- 천단위
Archives
- Today
- Total
목록multiprocessing (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