본문 바로가기

Daily Develope

검색하기
Daily Develope
프로필사진 noggame

  • 분류 전체보기 (116)
    • Develope (56)
      • Python (33)
      • Web (19)
      • ETC (4)
    • AI (16)
    • DB (6)
    • MicroService (7)
      • Docker (6)
      • Kubernetes (1)
    • OS (16)
      • Linux (11)
      • Windows (1)
      • Mac (4)
    • Git (7)
    • Algorithm (1)
    • Favorite (4)
      • 책갈피 (4)
      • Music (0)
Guestbook
Notice
  • migration 중입니다...
Recent Posts
Recent Comments
Link
«   2026/06   »
일 월 화 수 목 금 토
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
  • AI
  • list
  • Windows
  • Container
  • pytorch
  • numpy
  • Paper
  • file
  • Linux
  • ubuntu
  • evaluation
  • Mac
  • GitLab
  • docker
  • LLM
  • Converting
  • Laravel
  • DB
  • pandas
  • judge
  • Python
  • Database
  • Package
  • git
  • TORCH
  • 책갈피
  • PostgreSQL
  • Flask
  • KAKAO
  • format
more
Archives
Today
Total
관리 메뉴
  • 글쓰기
  • 방명록
  • RSS
  • 관리

목록Pool (1)

Daily Develope

[Python] Multi processing 멀티 프로세싱

샘플코드 - Multiprocessing Pool : 현재 환경의 전체 프로세스를 사용해 0~499 까지의 제곱을 (병렬)계산 import multiprocessing def mul(x): return x*x if __name__ == '__main__': availableProcess = multiprocessing.cpu_count() # CPU 전체개수 조회 processPool = multiprocessing.Pool(availableProcess) # 사용할 CPU 개수 설정, 논리(logical) CPU당 하나의 worker process를 가진다 processPool.map(mul, range(500)) # 0~499 까지 숫자를 인자값으로 mul 함수 호출을 각 코어마다 수행 샘플코드 - ..

Develope/Python 2023. 2. 15. 20:00
이전 Prev 1 Next 다음

Blog is powered by AXZ / Designed by Tistory

티스토리툴바