2021-01-22-TIL

노드는 싱글 스레드라서 스레드 슬립

동기화/비동기화

메모리 지역성

분할정복할 수 있는 문제의 경우에는 병렬적으로 처리할 수 있다.

싱글코어에서 멀티스레드는 만개까지는 빨라진다.

smt

하이퍼스레딩

amd에서는

왜 게임은 싱글스레드로 밖에 못 돌리나

1번코어만 많이쓰는데 1번코어만 닳고 그럴수도 있어요?

그런 경우는 물리적으로 거의 없다.

리눅스 커널 내부구조

GC가 성능이 안나와서 GC를 고를 수 가 있다. 하지만 해결이 안되어서 C언어로 APP을 짜서 Java에서 직접 C API를 호출하는 방식으로 해결

야크 쉐이빙과 같이 공부해라. 키워드만 중심으로 하라. 모르면 모르는 상태로 넘어가라. 농구도 드리블 한달, 패스 한달, 이런식으로 하지 않는다. 그러다보면 어느날 갑자기 되는 기술이 생기기도 한다.

VM 가상메모리 - 콘도 overbooking과 비슷, 페이징

OS의 목적 HW제어, Protection 리소스 보호

pbcopy

pbpaste

pintOS, natchOS

while(true){

int pid = for(); //65500 정도로 제한하면 ssh로 접속해서 kill할 수 있다.

}

스미스요원이 fork() 해서 막 복제한다음 exec()하는 것. 컴퓨터 공부를 하고 다시 보는 영화를 리뷰 해야지.

export $PYRO

source명령은 출력된다. source는 한줄씩 명령을 현재 쉘에서 실행하는것이다. 그러므로 fork()를 하지 않는다. . test.sh쩜은 source의 준말이다.

연산이 많지않아서 부모가 먼저 죽을 가능성이 크다. 핵심연산은 자식이 담당하므로

스레드는 preemt 하는가?

파직스 스레드

스레드의 확대 -> PC와 Registter Backup이 필요, 메모리의 코드영열은 공유한다, 스택은 나눠서 각자쓴다, 힙은 공유

boxer

콘웨이의 라이프게임

오징어 타는냄새가 났다고 하니깐 당연하지 오징어가 타고 있으니깐

Event Loop in Node.js

https://learnnode.wordpress.com/2017/10/23/event-loop-in-node-js/

https://www.notion.so/Why-NodeJS-91b96ba73c064b34acabf3ea86c3ceff

https://www.zerocho.com/category/JavaScript/post/597f34bbb428530018e8e6e2

OS

https://github.com/v8/v8

https://warsus.github.io/lions-/

Page Replacement

https://medium.com/pocs/%ED%8E%98%EC%9D%B4%EC%A7%80-%EA%B5%90%EC%B2%B4-page-replacement-%EC%95%8C%EA%B3%A0%EB%A6%AC%EC%A6%98-650d58ae266b

MultiCore

https://namu.wiki/w/%EB%A9%80%ED%8B%B0%EC%BD%94%EC%96%B4%20%ED%94%84%EB%A1%9C%EC%84%B8%EC%84%9C

MultiThread in Single Core

https://www.helpsystems.com/resources/articles/modeling-multi-threaded-processors

https://stackoverflow.com/questions/51863901/multithreading-on-a-single-core

Java Monitor

https://happy-coding-day.tistory.com/8

cmatrix

https://www.youtube.com/watch?v=K6qeF7pbcLw

Semaphore, Mutex

https://worthpreading.tistory.com/90

https://stackoverflow.com/questions/3362303/whats-a-monitor-in-java#:~:text=Monitor%20is%20a%20synchronization%20construct,certain%20condition%20to%20become%20true.&text=a%20wait%20set.-,In%20Java%2C%20any%20Object%20can%20serve%20as%20a%20monitor.,logically%20associated%20with%20a%20monitor.

wait() and join() in Java

https://www.geeksforgeeks.org/differences-between-wait-and-join-methods-in-java/

user level vs kernel level in Java

https://stackoverflow.com/questions/18278425/are-java-threads-created-in-user-space-or-kernel-space

https://m.blog.naver.com/whdgml1996/222076116487

Linux schedule a process

https://stackoverflow.com/questions/15601155/does-linux-schedule-a-process-or-a-thread

https://www.quora.com/Is-there-any-difference-between-CPU-scheduling-and-process-scheduling

https://www.quora.com/What-is-the-difference-between-scheduling-a-thread-and-scheduling-a-process

https://stackoverflow.com/questions/15997195/single-java-thread-uses-both-cores-on-mac

https://www.infoworld.com/article/2071214/java-101–understanding-java-threads–part-3–thread-scheduling-and-wait-notify.html?nsdr=true

https://www.geeksforgeeks.org/thread-scheduling/

https://www.iitk.ac.in/esc101/05Aug/tutorial/essential/threads/priority.html#:~:text=Execution%20of%20multiple%20threads%20on,algorithm%20called%20fixed%2Dpriority%20scheduling.&text=If%20two%20threads%20of%20the,one%20of%20them%20to%20run

https://www.javatpoint.com/thread-scheduler-in-java

공부 사이트

https://creately.com/lp/cisco-network-diagrams/

https://www.nand2tetris.org/