wilson's story

  • Tag
  • Medialog
  • Location
  • Guestbook
  • Admin
  • Write

Thread 1

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
이전
1
다음
더보기
반응형
프로필사진

wilson's story

  • 분류 전체보기 (200)
    • Java (9)
      • Jsp (2)
    • Python (9)
    • Kubernetes (0)
    • Docker (4)
    • AJAX (1)
    • PHP (30)
      • smarty (2)
    • DB (24)
      • Oracle (11)
      • mysql (9)
      • mssql (2)
    • Javascript (29)
    • HTML (8)
    • Linux (56)
    • Tools (11)
    • Development Daily (0)
    • My information (17)
    • 두런두런 (2)

Tag

Eclipse, centos, docker, php, ubuntu, 일괄변경, Git, Oracle, 부모창, mariadb, Postfix, JavaScript, RabbitMQ, Python, Selectbox, SVN, TPL, MySQL, 천단위, smarty,

최근글과 인기글

  • 최근글
  • 인기글

공지사항

Archives

Calendar

«   2026/02   »
일 월 화 수 목 금 토
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
02-10 10:37

방문자수Total

  • Today :
  • Yesterday :

Copyright © Kakao Corp. All rights reserved.

티스토리툴바