코딩

Start Python #1 Thread safe 싱글톤 패턴

Posted on

싱글톤 패턴 설명은 다음과 같습니다. 싱글톤 패턴은 클래스가 단 하나만의 인스턴스를 갖도록 보장하고 글로벌 접근이 가능하도록 합니다. The singleton pattern ensures class has only one instance, and provides a global point of access to it. 1 예제 코드를 보시려면 이 링크의 영상을 참조해주세요. 싱글톤 패턴 싱글톤 패턴은 GOF (Gang of Four)이 설명한 디자인 패턴중에 하나입니다. […]

programming

Start Python #1 Thread safe singleton pattern

Posted on

The singleton pattern ensures class has only one instance, and provides a global point of access to it. 1 You can see an example code from this video. singleton pattern It’s one of design pattern described by GOF (Gang of Four). There are many objects we only need one. In example, There are such as […]