네트워크/CS Study
-
[CS study] 로컬스토리지 && 세션스토리지네트워크/CS Study 2023. 7. 13. 19:54
로컬스토리지와 세션스토리지의 개념 1. 로컬스토리지와 세션스토리지의 공통점 데이터를 클라이언트에 저장 할 수 있다 JS API의 형태가 완전히 동일하다 (하나의 사용법만 익혀도 둘 다 사용이 가능하다) 2. 로컬스토리지와 세션스토리지의 차이점 로컬스토리지는 웹페이지를 종료하더라도 데이터가 날아가지 않는다 반면 세션스토리지는 세션이 종료하게 되면 데이터가 사라진다 (창을 닫았을 때 세션이 종료됨으로 보자) 로컬스토리지는 데이터를 모든 세션이 공유하는 반면 세션스토리지는 각 세션마다 데이터를 저장하고 공유하지 않는다 3. 로그인페이지를 만들 때 사용가능하겠다 - 로컬스토리지와 세션스토리지는 서버에 들어가지 않아도 되는 중요하지 않은 데이터를 저장하는데 사용이 되는데 클라이언트에 직접 저장이 되기 때문에 이러..
-
[항해 99 CS study] CPU와 메모리네트워크/CS Study 2023. 7. 7. 16:09
CPU의 구성 1. 산술 / 논리 연산장치 CPU 내부에서 계산기 역할을 수행하는 장치 산술 연산: 덧셈 뺄셈 등등 사칙연산이다.논리 연산 : 0과 1을 이용한 연산이다. 2. 제어장치 처리할 명령어를 해석하고 명령 수행에 필요한 제어신호를 생성해서 모듈에게 보내는 역할을 한다.CPU상태 신호, 클릭을 입력으로 받는다. 3. 레지스터 연산에 사용되는 데이터와 CPU의 상태를 저장하는 임시 저장공간이다.가시레지스터와 불가시레지스터가 있으며 각각의 구성은 다음과 같다.연산 중에 필요한 상태를 보관하고 간단한 연산은 직접 수행함으로써 산술/논리연산장치를 거치지 않아 계산이 빠른것이 특징이고 대표적으로 쉬프트, 로테이트의 경우에 레지스터가 직접 연산을 수행한다. 4. 버스 정보들이 지나다니는 통로데이터버스 : ..
-
[CS study] 도메인에 URL을 쓴다면?네트워크/CS Study 2023. 6. 30. 21:41
연결되는 과정 1. 호스팅서버를 찾는다 [channy.creation.net ]둘 중 무엇이 기억하기 쉬운가 [3.34.220.186 ] 도메인은 IP보다 기억하기 쉽다는 내용을 기억하자. 주소창에 도메인을 입력하면 DNS 조회를 하여 도메인을 통해 서버의 IP 주소를 찾을 수 있다 DNS캐시를 확인하면서 될때까지(고유한 캐시, 운영 체제 캐시, 라우터의 로컬 네트워크 캐시, 회사 네트워크 또는 인터넷 서비스 제공업체(ISP)의 DNS 서버 캐시를 확인) DNS조회를 요청하는데 웹브라우저가 IP주소로 DNS레코드를 가져오면 인터넷에서 서버를 찾아서 연결을 한다. (검색결과 페이지와 같이 다양한 도메인명의 링크가 있는페이지에서 DNS Prefetch라는 기능이 도메인명을 미리 확인해서 DNS 확인시간으로 ..
-
[CS Study] TypeScript를 사용해야하는 이유네트워크/CS Study 2023. 6. 27. 01:10
컴파일언어 VS 인터프리터언어 컴파일언어란 원시코드(사용자가 작성한 코드)를 컴파일 단계을 거친 후 실행단계로 넘어가는 언어로써 컴퓨터가 이해하기 쉬운 저급언어로 바꾸어서(컴파일링) 실행하기 떄문에 속도가 인터프리터언어에 비해 빠르고 컴파일 한 코드에서 오류를 잡아낼 수 있어서 런타임 환경 이전에 오류를 잡아 낼 수 있다는 특징이 있고 코드를 수정할 시 다시 컴파일링을 하게 된다. 인터프리터언어란 컴파일링 과정을 거치지 않고(기계어 변환 x) 한줄씩 바로바로 실행되는 언어로써 실행 시마다 인터프리터과정을 거치게 되므로 컴파일언어보다 느리고 컴파일언어와 달리 한줄 한줄 실행하기 떄문에 오류를 만나기 전까지는 계속 실행이 되는게 특징이다. TypeScript란? 자바스크립트가 개발 될 당시에는 복잡한 구조의..