TIL(today i learned)
-
조회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..
-
-
3.2.1 Scheduling QueuesTIL(today i learned)/운영체제 2023. 3. 22. 23:13
Ready큐:프로세스가 준비 상태가 되어 CPU 코어에서 실행되기를 기다림 Wait큐:입출력 같은 이벤트를 대기함 CPU스케줄러:준비큐에있는 프로세스중에서 하나를 골라 CPU코어를 할당해준다 스와핑:메모리에서 프로세스 하나를 제거하여 다중프로그래밍의 정도를 감소시는것 오버헤드:어떤 처리를 하기 위해 들어가는 간접적인 처리 시간 · 메모리 등 을말함 CPU가 2개가 아닌이상 병렬처리는 불가능하다.대신 와리가리 ㅈㄴ 빠르게 하기때문에 동시에 실행된다고 느껴지는것일 뿐이다. 프로세스가 프로세스를 생성해가며 트리를 생성할수있다. 또한 프로세스들은PID라는 고유한 번호를 가지고있다. 자식프로세스와 부모프로세스는 메모리를 공유할수도 안할수도 있다.또한 자식과 부모가 동시에 실행되거나 부모가 자식이 죽을때 까지 기다..