Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[20210730] LRU(페이지 교체 알고리즘), Java 깊은 복사와 얕은 복사 #188

Open
JuHyun419 opened this issue Jul 30, 2021 · 0 comments
Labels
CS Computer-Science

Comments

@JuHyun419
Copy link
Owner

JuHyun419 commented Jul 30, 2021

LRU(Least Recently Used)

  • 가장 오랫동안 사용되지 않은 캐시의 메모리 제거하는 페이지 교체 알고리즘

  • 새로운 데이터가 들어온 경우

    • 캐시가 가득 차있으면 가장 오래된 데이터를 제거하고 넣는다.
    • 캐시가 가득 차있지 않으면 캐시에 넣어준다.
  • 이미 존재하는 데이터가 들어온 경우

    • 해당 데이터를 꺼낸다.
    • 가장 최근 데이터로 꺼낸 데이터를 다시 넣는다.
  • 캐시 히트(Cache Hit)

    • CPU가 참조하고자 하는 메모리가 캐시에 이미 존재하고 있는 경우
  • 캐시 미스(Cache Miss)

    • CPU가 참조하고자 하는 메모리가 캐시에 존재하지 않는 경우

관련문제: https://programmers.co.kr/learn/courses/30/lessons/17680



Java 깊은 복사와 얕은 복사

@JuHyun419 JuHyun419 added the CS Computer-Science label Jul 30, 2021
@JuHyun419 JuHyun419 changed the title [20210730] LRU(페이지 교체 알고리즘) [20210730] LRU(페이지 교체 알고리즘), Java 깊은 복사와 얕은 복사 Jul 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CS Computer-Science
Projects
None yet
Development

No branches or pull requests

1 participant