| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 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 | 31 |
Tags
- django
- Baekjoon
- 알고리즘
- 그래프 탐색
- EC2
- 누적합
- 프로그래머스
- 프림
- 피로그래밍
- union find
- 백준
- GROUPBY
- JOIN
- Database
- 코딩테스트
- 크루스칼
- MST
- db
- 배포
- 다익스트라
- Java
- OrderBy
- AWS
- 구현
- 자바
- Pirogramming
- SQL
- SQL코딩테스트
- 최단경로
- BFS
Archives
- Today
- Total
목록thread (1)
NullNull
Python 쓰레드 실행하기
Python 쓰레드 관련 코드를 작성하다가 예상치 못한 상황을 맞이했다. 우선 코드부터 보자 import threading import time import random def sub_task(idx, timeout): print("subtask started " + str(idx)) time.sleep(timeout) print("subtask finished " + str(idx)) def main_thread(): print("main thread started") for i in range(10): thread = threading.Thread(target = sub_task, args = (i, random.randint(1, 10))) thread.start() print("main threa..
카테고리 없음
2024. 4. 8. 23:34