ParkDevDiary

  • 홈
  • 태그
  • 방명록

cpython 1

두 코드의 차이점을 설명하시요( feat. Python,쓰레드, GIL, 병렬 I/O)

import select import socket def slow_systemcall(): select.select([socket.socket()], [], [], 0.1) start = time.time() for _ in range(5): slow_systemcall() end = time.time() delta = end - start print(f'Took {delta:.3f} seconds') # Took 0.526 seconds import select import socket def slow_systemcall(): select.select([socket.socket()], [], [], 0.1) start = time.time() threads = [] for _ in range(5): t..

프로그래밍 언어/Python 2023.09.15
이전
1
다음
더보기
프로필사진

  • 분류 전체보기 (34)
    • 알고리즘 (2)
      • Problem Solving (2)
      • Algorithm Theories (0)
    • 프로그래밍 언어 (0)
      • Python (13)
      • C,C# (1)
      • Flutter (1)
    • 일상 (2)
      • 정글 (2)
    • 개발도서 (0)
    • 오픈소스 (13)

Tag

디스크립터, 뮤텍스, 병렬성, Python, asyncio, cpython, Thread, 코드리뷰, timeit, MetaClass, 동시성, 버퍼, Gil, effectivepython, DP, contextmanager, queue, 블로킹I/O, subprocess, 컨텍스트 스위칭,

최근글과 인기글

  • 최근글
  • 인기글

최근댓글

공지사항

페이스북 트위터 플러그인

  • Facebook
  • Twitter

Archives

Calendar

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

방문자수Total

  • Today :
  • Yesterday :
  • 분류 전체보기 (34)
    • 알고리즘 (2)
      • Problem Solving (2)
      • Algorithm Theories (0)
    • 프로그래밍 언어 (0)
      • Python (13)
      • C,C# (1)
      • Flutter (1)
    • 일상 (2)
      • 정글 (2)
    • 개발도서 (0)
    • 오픈소스 (13)

Tag

디스크립터, 뮤텍스, 병렬성, Python, asyncio, cpython, Thread, 코드리뷰, timeit, MetaClass, 동시성, 버퍼, Gil, effectivepython, DP, contextmanager, queue, 블로킹I/O, subprocess, 컨텍스트 스위칭,

공지사항

Archives

Copyright © Kakao Corp. All rights reserved.

티스토리툴바