Giter VIP home page Giter VIP logo

learning-go's Introduction

Learning-Go

Learning Go with Go 마스터하기

GC(Garbage Collecter)

삼색 마크 앤 스윕 알고리즘(tricolor mark-and-sweep algorithm)

  • 핵심 원리
    • 힙에 있는 오브젝트를 검은색(흰색 집합 포인터 x), 회색(흰색 집합 중 일부), 흰색(검은색 o)의 세 가지 색깔로 지정된 집합으로 나눔
    • 모든 오브젝트 흰색 -> 루트 오브젝트(스택에 있는 오브젝트 or 전역변수처럼 직접 접근할 수 있는 오브젝트) 모두 회색으로
    • GC는 회색을 검은색으로 바꾸고 if 흰색 오브젝트 가지고 있으면 회색에 넣고 최종적으로 회색 집합이 모두 없어질 때까지

마크 앤 스윕 알고리즘

우선 프로그램의 실행을 모두 멈추고 힙에서 접근할 수 있는 오브젝트를 모두 방문한 뒤에 적절히 표시
핵심 원리 불변이 되지 않게 하기 위하여 새 오브젝트는 모두 회색 집합으로 보냄 => 동작 중 실행 가능

java는 가비지 컬렉터 다양함 G1 가비지 컬렉터는 저지연 애플리케이션에 적합해 자주 사용 / But Go는 아니다.

learning-go's People

Contributors

rlaminseok0824 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.