분류 전체보기
-
-
3.2.1 Scheduling QueuesTIL(today i learned)/운영체제 2023. 3. 22. 23:13
Ready큐:프로세스가 준비 상태가 되어 CPU 코어에서 실행되기를 기다림 Wait큐:입출력 같은 이벤트를 대기함 CPU스케줄러:준비큐에있는 프로세스중에서 하나를 골라 CPU코어를 할당해준다 스와핑:메모리에서 프로세스 하나를 제거하여 다중프로그래밍의 정도를 감소시는것 오버헤드:어떤 처리를 하기 위해 들어가는 간접적인 처리 시간 · 메모리 등 을말함 CPU가 2개가 아닌이상 병렬처리는 불가능하다.대신 와리가리 ㅈㄴ 빠르게 하기때문에 동시에 실행된다고 느껴지는것일 뿐이다. 프로세스가 프로세스를 생성해가며 트리를 생성할수있다. 또한 프로세스들은PID라는 고유한 번호를 가지고있다. 자식프로세스와 부모프로세스는 메모리를 공유할수도 안할수도 있다.또한 자식과 부모가 동시에 실행되거나 부모가 자식이 죽을때 까지 기다..
-
3-3 인터네트워킹TIL(today i learned)/네트워크 2023. 3. 21. 17:27
서로다른 네트워크를 연결하는 기능을 인터네트워킹이라함 네트워크간의 차이(라우터의 역할)는 다양한 방법으로 기술할수있는다. 연결형vs비연결형 프로토콜 종류 주소표현 방법 패킷의 크기 멀티/브로드 캐스팅 지원여부 네트워크 장비의 종류 리피터:물리계층의 기능지원,신호증폭 브리지:물리,데이터 링크 계층 기능지원 , 종류가다른 LAN에 연결할수있음 라우터:물데네 계층기능 지원 다수의 LAN을 연결,라우팅기능수행 게이트웨이:서로다른 네트워크간의 통신을 위한 통로 이더넷:네트워크를 이루는 컴퓨터의 통신 수단중 하나 만약 LAN모두 이더넷을 사용하면 브리지는 프레임헤더를 해석하는 간단한 과정만 필요하지만,종류가다르면 프레임변환등의 복잡한 잡억이 추가됨. 트랜스페런트 브리지:사용자가 따로 설정할필요없이,자동으로 라우팅과..
-
3-1 라우팅의 기능TIL(today i learned)/네트워크 2023. 3. 21. 17:08
연결형서비스:회선 교환=>대역낭비,고정크기의 전송률 비연결형 서비스:패킷 교환 => 가변 크기의 전송률 패킷 교환:데이터를 패킷단위로 분활해서 전송 하고 패킷 기준으로 라우팅을 함,컴퓨터 네트워크환경에서 주로사용 패킷교환도 여러가지 종류가있는데 하나는 가상회성방식이고 나머지는 데이터그램 방식이다 가상회선방식은 패킷의 경로를 일정하게 유지하는 방면 데이터그램은 패킷의 경로가 각각 다르다. 교환회선:전송 선로 하나를 다수의 호스트가 공유 회선교환은 데이터를 교환하기전에 경로를 정해둠 메시지 교환:전송하는 메세지 헤더마다 주소 기입 패킷교환은 패킷단위로 나누어 전송 패킷교환을 사용하는이유? 전손대역의 효율,호스트 추가의 무제한,패킷의 우선순위 패킷교환의 종류:가상회선,데이터 그램 가상회선 패킷의 경로가 일정하..
-
2-3인터넷 모델TIL(today i learned)/네트워크 2023. 3. 21. 16:21
인터넷:데이터의 중개 기능을 담담하는 네트워크로 IP프로토콜을 사용한다 UDP/TCP:전송 계층 프로토콜 . 인터넷에 연결하려면 IP가 꼭 필요함 TCP:데이터의 신뢰성 UP BUT 속도 DOWN and 양방향 연결형 UDP:데이터의 신뢰성 DOWN BUT 속도 UP and 단방향 비연결형 라우터는 패킷 중개역할을 한다. 포트:프로세스를 구분하는 방법 인터넷의 고유주소는 PORT 와 IP로 완성된다. 위 그림을보면 ARP/RARP , ICMP가 보이는데 이들은 IP의 보조역할이며 여기서 작업을 마쳐도 IP패킷을 통해 데이터가 이동한다. ARP/RARP:주소문제 해결 ICMP:오류문제 해결 자세히 말하자면 ARP는 수신 IP를 MAC으로 변환시켜주고 RARP는 송신MAC을 IP로 변경해준다. ICMP는 오..
-
-
3.1 Process ConceptTIL(today i learned)/운영체제 2023. 3. 20. 14:16
CPU의 활동을 을 부르는 방법 단일 처리시스템: job 시분할시스템: user programs or tasks 프로세스:실행중인 프로그램(백번은 말한거같다) 프로그램vs프로세스 프로그램:명령어 리스트를 내용으로가진 디스크에 저장된파일(수동적인 존재) 프로세스:실행할 명령어를 지정하는프로그램 카운터와 관련 자원의 집합을 가짐 (능동적인존재) 아래 그림을 보자 Text section :실행 코드 Data section :전역 변수 Heap section :프로그램중에 동적으로 할당되는 메모리 Stack section :함수를 호출할때 임시 저장소(재귀함수 가 깊어지면 안되는 이유) activation record(활성화 레코드) :함수실행시 매개변수,지역변수,복귀주소를 포함하는 활성화 레코드가 스택에 푸시..