네트워크/CS Study
-
[혼공컴운]운영체제 시작하기네트워크/CS Study 2024. 3. 15. 11:03
개요 1. 운영체제를 알아야 하는 이유 ✅ 운영체제를 알아야 하는 이유? 📦 운영체제란? 실행할 프로그램에 필요한 자원을 할당하고, 프로그램이 올바르게 실행되도록 돕는 특별한 프로그램으로 여느 프로그램과 같이 메모리에 적재되어야하지만 매우 특별한 프로그램이기에 커널 영역이라는 공간에 따로 적재되어 실행된다. 메모리 관리: 프로그램을 어디에 위치할지도 운영체제가 결정한다. CPU 관리: 하여 프로그램 실행 순위와 지속 시간과 같은 요소를 결정한다. 입출력장치 관리: 여러 프로그램이 특정 입출력장치를 사용하려 할 때 순서를 결정하게끔하여 충돌이 일어나지 않도록 한다. 하드웨어와 가까운 곳에 위치해서 프로그램이 요구하는 자원을 할당하고 올바르게 실행하는 것을 돕는다. 🎉 자원 더보기 프로그램 실행에 있어서 마..
-
[CS Study] SOLID 원칙네트워크/CS Study 2024. 3. 14. 22:42
개요 1. SOLID 원칙이란? 2. 단일 책임 원칙 (SRP) 3. 개방 폐쇄 원칙 (OCP) 4. 리스코프 치환 원칙 (LSP) 5. 인터페이스 분리 원칙 (ISP) 6. 의존관계 역전 원칙 (DIP) ✅ SOLID 원칙이란? 소프트웨어 개발의 다섯가지 설계 원칙을 나타내는 약어로 각 원칙을 통해 소프트웨어의 재사용성, 유연성, 확장성을 높일 수 있으며 이는 쉬운 유지 보수를 가능하게 한다. 단일 책임 원칙 (SRP, Single Responsibility Principle) 개방 폐쇄 원칙 (OCP, Open Close Principle) 리스코프 치환 원칙 (LSP, Liskov Substitution Principle) 인터페이스 분리 원칙 (ISP, Interface Segregation Pr..
-
[CS Study] JWT - 어떻게 사용해야하는가?네트워크/CS Study 2024. 3. 6. 12:22
1. JWT란 무엇인가? 2. 왜 JWT를 사용해야하는가? 3. JWT는 안전한가? 4. 토큰 탈취는 어떻게 이루어지는가? 5. 나는 어떤 방법으로 보안을 강화해야할까? ✅ JWT(JSON Web Token)란 무엇인가? 웹에서 사용되는 JSON 형식의 토큰에 대한 표준 규격으로 사용자의 인증, 인가 정보를 서버와 클라이언트 간에 안전하게 주고 받기 위해 사용되는 토큰이다. header, payload, signature로 구성되어 있으며 Base64-URL 문자열 형태로 "."을 통해서 구분되어 있다. 📦 header 일반적으로 토큰 유형과 서명 알고리즘으로 구성되어 있으며 JWT의 첫 번째 부분을 구성한다. { "alg": "HS256", "typ": "JWT" } 📦 payload 세가지 유형의 클..
-
[혼공컴운] CPU의 작동 원리네트워크/CS Study 2024. 3. 2. 13:49
✅ ALU와 제어장치 📦 ALU 1+2라는 연산을 수행하기 위해서는 피연산자(1, 2)와 수행할 연산(+)이 필요하기에 ALU는 레지스터를 통해 피연산자를 받고 제어장치로부터 제어 신호를 받아 산술, 연산, 논리 연산 등을 수행하는 장치이다. 결과값은 특정 숫자, 문자, 메모리 주소가 될 수 있다. 이 결과값은 메모리에 저장되지 않고 레지스터에 저장된다.(CPU는 메모리에 접근하는 시간이 레지스터보다 느리기에 추가적으로 다른 레지스터에 사용하거나 메모리에 담는 것인 이후에 실행) 부가적인 정보인 플래그를 추가적으로 내보낸다. 다양한 계산을 위한 회로를 가지고 있다.(덧셈: 가산기, 뺄셈: 보수기, 비트의 이동: 시프터, 오버플로우 검출기) 📌 플래그 더보기 위 보기와 같이 CPU에 숫자가 이진법으로 저장..