걸어서개발한바퀴

  • 홈
  • 태그
  • 방명록

queue 2

list 에서 Queue로 옮기기

이 이슈를 접한 것은, 제가 쓰던 프로그램에서 os.listdir을 사용하였기 때문입니다. os.listdir을 사용했을 때 deque를 사용하는 방법은 다음과 같습니다. from collections import deque dq = deque(os.listdir('.')) 하지만 멀티 쓰레드 애플리케이션의 경우에는 deque보다는 queue.Queue를 사용하는게 좋다고 말했습니다. 하지만 queue.Queue(os.listdir('.')) 는 통용되지 않습니다. 그럼 직접 옮겨야 되는데, 다음 참고할 만한 레퍼런스가 있습니다. stackoverflow.com/questions/21639888/is-it-possible-to-convert-list-to-queue-in-python/41581928 im..

Python 2021.03.09

list vs Queue vs Deque 멀티쓰레딩 파이썬

참고 : programmer.group/python-collections.deque-vs-queue.queue-vs-multiprocessing.queue.html Python collections.deque vs. Queue.Queue vs. multiprocessing.Queue Generally speaking, multiprocessing.Queue is used when communication between processes is needed; Queue.Queue is used when communication between threads is needed in the same process; and collections.deque is usually used as a data structu..

Python 2021.03.09
1
더보기

방문자수Total

  • Today :
  • Yesterday :
프로필사진

개발여행 가 봅시다~

  • 분류 전체보기 (194)
    • Audio Processing (2)
    • 알고리즘 (7)
      • 리트코드 (5)
    • Data Engineering (3)
    • Linux (16)
      • Ubuntu (13)
    • Utils (15)
      • Program (4)
      • Git (6)
    • Machine Learning (30)
      • Device (7)
      • Tensorflow (5)
      • Regression (1)
    • Python (10)
      • Concurrency (4)
      • Basics (3)
    • 환경설정 (12)
    • kaggle 및 dacon (2)
    • Web Programming (18)
      • Server (5)
      • Java Spring (11)
    • Cloud (2)
      • Docker (7)
    • Network (2)
      • protocols (1)
    • Video Processing (5)
      • Gstreamer (2)
    • Image Processing (11)
      • Cv2 (8)
    • Deep Learning (30)
      • NLP (10)
      • Computer Vision (11)
    • 잡담 (2)
    • 모바일 (1)
      • 안드로이드 (10)
      • flutter (2)
    • openai (5)
    • Data Science (2)

Tag

CNN, tensorflow, Linux, docker, Android, tx2, ubuntu, Git, mac, yolo, yolov5, OpenCV, GCP, cv2, Python, 도커, TFlite, image classification, spring boot, jetson,

최근글과 인기글

  • 최근글
  • 인기글

최근댓글

공지사항

페이스북 트위터 플러그인

  • Facebook
  • Twitter

Archives

Calendar

«   2025/08   »
일 월 화 수 목 금 토
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

Copyright © Kakao Corp. All rights reserved.

티스토리툴바