목록전체 글 (75)
Kim Jinung
What Is the Python Global Interpreter Lock (GIL)? – Real Python Python's Global Interpreter Lock or GIL, in simple words, is a mutex (or a lock) that allows only one thread to hold the control of the Python interpreter at any one time. In this article you'll learn how the GIL affects the performance of your Python prog realpython.com What is the Python Global Interpreter Lock (GIL)? Understandin..

0. Goal 쿠버네티스를 사용하고있지만 내부에서 어떤 흐름으로 동작하고 있는지 이해가 부족하다. kube-system 네임스페이스에서 기본적으로 실행되고 있는 kube-proxy, api-server 등이 어떤 역할을 담당하는지 모르고있다. 이번 글에서는 쿠버네티스의 아키텍처를 살펴보고 각 컴포넌트들이 어떤 역할을 하는지 정리한다. 1. 쿠버네티스 클러스터 컴포넌트 쿠버네티스 클러스터는 노드(node)라고 부르는 worker machine(node)들과, 이러한 node들을 관리하는 control plane으로 구성되어있다. master, worker 형태로 구성되어있는 것이다. 유저의 모든 요청은 API server를 통해서 전달된다. API server 컴포넌트가 소속된 control plane 내..

파이썬의 리스트, 딕셔너리, 스트링 같이 원소를 가지는 데이터 구조를 컨테이너라고 부른다. 그리고 컨테이너는 이터레이블하며 이는 반복이 가능한, 순회가 가능한 자료구조라는 의미다. 그리고 이터레이블한 객체는 이터레이터라는 인스턴스를 생성할 수 있다. num_list = [1, 2, 3] for num in num_list: print(num) num_list는 리스트라는 컨테이너다. 따라서 이터레이블하다. for 문에서는 이터레이블한 num_list를 순회하고자 한다. 이때 num_list를 그대로 사용하는 것이 아니라 num_list를 활용해서 이터레이터 인스턴스를 생성한다. 이터레이터는 값 생성기로 다음 값을 요청하면 반환하고 그 다음 값을 반환하게 된다. 위 for 문에서 num 변수는 처음 1을 ..