이 글은 운영체제 공룡책 강의를 듣고 정리한 내용입니다.
CPU가 1개가 아니라 여러 개다.
즉 registers와 cache를
독립적으로 가진 CPU가 1개의 메모리에 연결이 되어있다.
예를 들어 슈퍼 컴퓨터에는 CPU가 900만 장이 있다.
ref : 19:00
이 게시물은 원글을 읽고 정리한 글이며 원글을 읽어보는 걸 강력하게 추천드립니다 !
일반적으로 Transaction이 Commit될 때
Session의 모든 변경사항이 DB로 Flush가 이뤄진다.
하지만 영속성 컨텍스트의 Flush 시점 역시 커스터 마이징이 가능하다.
기본적으로 Hibernate는 다음과 같은 경우에 Session의 변경사항을 DB에 Flush한다.
Design a data structure that follows the constraints of a Least Recently Used (LRU) cache.
Could you do get and put in O(1) time complexity?
Given an integer array nums, design an algorithm to randomly shuffle the array.
Implement the Solution class:
Solution(int[] nums) Initializes the object with the integer array nums.
int[] reset() Resets the array to its original configuration and returns it.
int[] shuffle() Returns a random shuffling of the array.