컴퓨터
-
백준 입출력 받기컴퓨터/자료구조_알고리즘 2021. 1. 16. 17:16
* node var fs = require('fs'); var input = fs.readFileSync("/dev/stdin").toString().split(/\r?\n/); // 출력은 process.stdout.write("hello "); // 줄바꿈없이 가능 * c++ 1) scanf 이용 #include using namespace std; // 문자열 받을 때 char a[600000]; scanf("%s",a); // 정수 받을 때 int m; scanf("%d", &m); // input이 띄어쓰기+target 문자인 경우 // scanf로 받은 이후 줄바꿈된 문자를 받을 때도 띄어쓰기 필요 char target; scanf(" %c", &target); // 여러 개 받을 때 int ..
-
[ DB ] DB 공부하는 법컴퓨터/DB, SQL 2020. 12. 23. 16:17
* DB 강의 https://github.com/ossu/computer-science?tab=readme-ov-file GitHub - ossu/computer-science: 🎓 Path to a free self-taught education in Computer Science!🎓 Path to a free self-taught education in Computer Science! - ossu/computer-sciencegithub.comCourses | Duration | Effort | Prerequisites | DiscussionDatabases: Modeling and Theory2 weeks10 hours/weekcore programmingchatDatabases: Relatio..
-
<script> 태그를 어디에 둘까, async, defer컴퓨터/JavaScript_typescript 2020. 12. 11. 09:05
source: youtube 드림코딩 엘리 강의 이웅모, 자바스크립트 deep dive * html을 파싱하면서 js파일을 다운로드 받는다. 이후 다운로드가 완료되면 html을 파싱하는 일은 잠시 멈추고, js 파일을 실행한다. 실행이 다 끝나면 parsing HTML을 다시 시작한다fetching이 parsing과 병렬적으로 일어난다. => 다운로드 받는 시간을 절약할 수 있다.단점 : 만약 js 파일에 querySelector를 이용해서 dom을 조작하려고 한다면 아직 parsing이 끝나지 않아서 정의되어 있지 않은 element의 경우 에러날 수 있다.또한 parsing html이 완전히 끝나는데(중간에 block된다) 오래 걸려서 사용자가 불편할수 있다. 스크립트 태그의 순서보장도 X [ js ..
-
[ 운영체제 ] 세마포어( Semaphore ) 와 Mutex, deadlock, starvation, priority inversion컴퓨터/운영체제 2020. 11. 15. 20:09
Q. busy waiting * What is a Semaphore? - A semaphore is an integer variable, shared among multiple processes. The main aim of using a semaphore is process synchronization and access control for a common resource in a concurrent environment. - 예츠허르 다익스트라가 제안한 교착 상태에 대한 해법으로 두개의 Atomic한 함수로 제어되는 정수 변수 멀티프로그래밍 환경에서 공유자원에 대한 접근 제어 알고리즘, 상호배제 원리를 보장하는 알고리즘(Mutual Exclusion) - 임계구역에 대하여 각각의 프로세스들의 접근을..
-
C++ 목차컴퓨터/목차 모음 2020. 11. 11. 11:06
* IDE 사용법, c++ 파일 생성 및 build : ksj12172.tistory.com/468 * 기초적인 사용법 : ksj12172.tistory.com/471 * 선언과 정의의 분리, header file, header guard, namespace, 전처리기 : ksj12172.tistory.com/473 * 입출력 : ksj12172.tistory.com/497 * 연산자 : ksj12172.tistory.com/482 * 기본 자료형 : ksj12172.tistory.com/474 * #include , string: ksj12172.tistory.com/941 * NULL, 0, NUL, \0 : ksj12172.tistory.com/885 * 함수 만들기 : ksj12172.tistor..
-
Java 목차컴퓨터/목차 모음 2020. 11. 7. 15:21
* java language specification https://docs.oracle.com/javase/specs/jls/se8/html/jls-8.html#jls-8.4.3.3 * 자주 쓸 것 같은 Java 문법 : ksj12172.tistory.com/1130 [Java ] * mac에서 java 설치 : ksj12172.tistory.com/835 * Java 설치, 실행구조, 프로그래밍 작성법 : ksj12172.tistory.com/21 * java 입출력 : ksj12172.tistory.com/848 * Maven, Gradle : ksj12172.tistory.com/845 * 패키지와 static : ksj12172.tistory.com/58 * syntax, 접근자, 생성자, 시그..
-
소프트웨어, 컴퓨터 개념 목차컴퓨터/목차 모음 2020. 11. 6. 11:36
* 컴파일 언어 vs 인터프리터 언어 : ksj12172.tistory.com/952 [ 코드들 ] * 아스키코드(문자를 숫자로 표현하는 약속) : ksj12172.tistory.com/935 * 유니코드? 자바스크립트 문자열 타입은 0개 이상의 16비트 유니코드 문자(UTF-16) 집합으로 전 세계 대부분의 문자를 표현할 수 있다 [ 각 언어 데이터 타입 정리 ] * 각 언어에서 문자열 : ksj12172.tistory.com/936 [ 객체지향이란 무엇인가 ] * 객체지향프로그래밍(oop) : ksj12172.tistory.com/231 * (oop) 추상화 * (oop) 캡슐화 : ksj12172.tistory.com/692 * (oop) 정보은닉 * (oop) 상속 * (oop) 다형성 * 객체지..