분류 전체보기
-
Chapter 5: CPU SchedulingTIL(today i learned)/운영체제 2023. 4. 10. 13:13
다중프로래밍의 목적은 CPU의 사용률을 극한으로 끌어올리는 것이다. 프로세스의 실행은 I/O대기상태와 CPU실행을 왔다갔다 한다. CPU가 유휴상태가 될때마다 운영체제는 준비 큐에 있는 프로세스하나를 선택하고 실행하여야 되는데 이는CPU스케줄러에 의해 결정된다. CPU 스케줄링 결정이 발생하는경우 1.프로세스가 running에서 wait상태로 들어갈때 2.프로세스가 running에서 ready상태로 들어갈때 3.프로세스가 wait에서 ready상태로 들어갈때 4.프로세스가 종료할때 스케줄링방법에는 선점 스케줄링방법과 비선점 스케줄링 방법이 있는데 선전형 커널에는 공유 커널데이터 구조에 액세스 할 때 경쟁 조건을 방지하기위해mutex락 과 같은 기법이 필요하다. 디스패처는 스케줄링의 기능에 포함된다. 디스..
-
조회TIL(today i learned)/DB 2023. 4. 9. 12:01
https://hasiki.tistory.com/18 Mysql 전체 데이터베이스 & 테이블 조회 데이터베이스 전체 조회 쿼리 mysql> show databases; +--------------------+ | Database | +--------------------+ | information_schema | | blog | | mattermost | | mysql | | performance_schema | | redmine | | temp_xe | | test | | xe | | xe_blog | +- hasiki.tistory.com
-
MYSQL 로그인시 튕기는 현상TIL(today i learned)/DB 2023. 4. 9. 11:55
https://hoon93.tistory.com/9 MySQL 접속 에러 / ERROR 2003 (HY000): Can't connect to MySQL server on 'localhost' (10061) MySQL 접속 에러 ERROR 2003 (HY000): Can't connect to MySQL server on 'localhost' (10061) 로컬에서 root계정으로 MySQL접속을 시도했는데 DB Server에 접속되지 않는 에러가 발생했다. 위의 에러를 해석해보면 'localhost'( hoon93.tistory.com 참고하자
-
JAVA MYSQL 인코딩 UTF-8 변경방법(+이클립스 JSP설정)TIL(today i learned) 2023. 4. 8. 22:29
[client] default-character-set = utf8 [mysqld] skip-character-set-client-handshake default-character-set = utf8 character-set-server = utf8 collation-server = utf8_general_ci init-connect = SET NAMES utf8 [mysqldump] default-character-set = utf8 [mysql] default-character-set = utf8 https://parkjye.tistory.com/35 [Eclipse] 이클립스 "UTF-8" 인코딩(Encoding) 설정 # UTF-8 UTF-8은 유니코드를 인코딩(Encoding)하는 방법이고, 인..
-
4-1 MultithreadTIL(today i learned)/운영체제 2023. 4. 3. 21:15
스레드는 같은 프로세스에 속한 다른 스레드와 코드,데이터 섹션,등을 공유한다. 또한 각스레드마다 레지스터와 스택,프로그램 카운터를 가지고있다. 웹서버가 다중스레드화 되면,서버는 클라이언트의 요청을 listen하는 별도의 스레드를 생성한다. 장점: 응답성:긴 작업을 수행하더라도 프로그램의 수행이 계속되는 것을 허용함으로써,사용자에대한 응답성을 증가시킨다. 자원공유:스레드는 그들이속한 프로세스의 자원들과 메모리를 공유한다. 경제성:프로세스생성보다 비용이 적게든다. 규모 적응성:각각의 스레드가 다른처리기에서 병렬로 수행될수있다.
-
라우팅 시스템TIL(today i learned)/네트워크 2023. 3. 30. 20:47
트랜스패런트브리지가 정상적으로 작동하려면 라우팅테이블 정보가 정확해야한다. 라우팅테이블은 LAN이 자동으로 만들고 전송과정에서 송신호스트주소와 포트를 테이블에 저장한다. 이런식으로 네트워크동작과정에서 라우팅 정보를 얻는것을 역방향 학습이라고 한다. 또한 역방향학습 알고리즘은 사이클이 생기면 안됨으로 논리적으로 연결을 끊어야하며 이런 비순환구조를 스패닝 트리라 한다.(스패닝트리 알고리즘 사용) 링구조에서는 소스 라우팅 브리지 사용,트랜스패런트 브리지는 공유버스에서 구현되는 CSMA/CD 방식과 토큰 버스방식에서 사용,허나 효율성X 라우터에는 MAC계층의 프레임 구조에 차이가 있을 때 이를 변환해주는 기능이 필요하다 고정경로 라우팅: 송수신 호스트 사이에 고정 불변의 경로를 배정한다.동적X,이리예측해서 효율..
-
Android Process HierarchyTIL(today i learned)/운영체제 2023. 3. 27. 23:05
안드로이드는 제한된메모리로인해 프로세스를 종료하여 시스템자원을 회수해야하는데 이는 임의 것이아닌 중요도계층을통해 종료되어진다. 크롬브라우저는 다중프로세스방식을사용하여 다른탭문제가 생겼을때의 허점을 보완했음,크롬은 크게 3프로세스를 구분한다,브라우저:디스크와 네트워크 입출력관리,렌더러:웹페이지를 표시하기위한 프로그램 논리를 표시한다,플러그인:플러그인이 연관된 렌더러 프로세스와 브라우저 프로세스와 통신할수있게 하는코드 포함 렌더러 프로세스는 샌드박스 안에서 실행되는데,이는 보안의 취약점을 최소화하기위한것으로 디스크와 네트워크 입출력에대한 접근을 제한한다. 프로세스간에 데이터를 공유하는것을 협력적,반대로 공유하지 않는것을 비협력적이라 고 한다. 데이터를 공유하는이유:정보공유,계산 가속화,모듈성 공유하기위해서i..