분류 전체보기
-
[OS] 프로세스의 생성과 프로세스 간의 협력Computer Science/OS 2023. 1. 12. 18:56
시스템이 부팅 된 후 최초의 프로세스는 운영체제가 직접 생성하지만 그 다음부터는 이미 존재하는 프로세스가 다른 프로세스를 복제 생성하게 됩니다. 이 때 프로세스를 생성한 프로세스를 부모 프로세스라고 하고, 새롭게 생성된 프로세스를 자식 프로세스라고 한다. 프로세스의 세계에선, 자식이 먼저 죽고 이에 대한 처리는 자식을 생성했던 부모 프로세스가 담당하는 방식으로 진행된다. 프로세스 생성(Process Creation) 부모 프로세스가 자식 프로세스 생성 프로세스의 트리(계층 구조) 형성 프로세스는 작업을 수행하기 위해서는 자원을 필요로 함 자원 획득 방법 운영체제로부터 받는다 부모와 공유한다 자원의 공유 부모와 자식이 모든 자원을 공유하는 모델 일부를 공유하는 모델 전혀 공유하지 않는 모델 수행(Execu..
-
[OS] 쓰레드와 멀티쓰레드Computer Science/OS 2023. 1. 5. 14:25
http://www.kocw.net/home/cview.do?lid=29d9a718cff884c3 운영체제 운영체제는 컴퓨터 하드웨어 바로 위에 설치되는 소프트웨어 계층으로서 모든 컴퓨터 시스템의 필수적인 부분이다. 본 강좌에서는 이와 같은 운영체제의 개념과 역할, 운영체제를 구성하는 각 www.kocw.net Process2 동기식 입출력과 비동기식 입출력, 프로세스 스케줄링 큐의 모습, Thread http://www.kocw.net/home/cview.do?lid=54e1a4abcd59272d 운영체제 운영체제는 컴퓨터 하드웨어 바로 위에 설치되는 소프트웨어 계층으로서 모든 컴퓨터 시스템의 필수적인 부분이다. 본 강좌에서는 이와 같은 운영체제의 개념과 역할, 운영체제를 구성하는 각 www.kocw...
-
[OS] 운영체제 프로세스, 스케줄러Computer Science/OS 2022. 12. 29. 19:02
http://www.kocw.net/home/cview.do?lid=b31830a2b3cf1e60 운영체제 운영체제는 컴퓨터 하드웨어 바로 위에 설치되는 소프트웨어 계층으로서 모든 컴퓨터 시스템의 필수적인 부분이다. 본 강좌에서는 이와 같은 운영체제의 개념과 역할, 운영체제를 구성하는 각 www.kocw.net Process 1 프로세스의 개념, 프로세스의 상태(Process State), 프로세스의 개념, 프로세스 상태도, Process Control Block(PCB), 문맥교환(Context Switch), 프로세스를 스케줄링하기 위한 큐, Ready Queue와 다양한 Device Queue, 스케줄러(Scheduler) 프로세스 실행 중인 프로그램 프로세스의 문맥 프로세스가 현재 어떤 상태에서 ..
-
[OS] 시스템 구조와 프로그램 실행Computer Science/OS 2022. 12. 29. 14:24
https://core.ewha.ac.kr/assets/publish/C0101020140314151238067290 반효경 [운영체제] 4. System Structure & Program Execution 2 설명이 없습니다. core.ewha.ac.kr System Structure & Program Execution 2 컴퓨터 시스템 구조, 인터럽트(Interrupt), 동기식 입출력과 비동기식 입출력, 시스템콜(System Call), DMA(Direct Memory Access), 서로 다른 입출력 명령어, 저장장치 계층 구조, 프로그램의 실행(메모리 load), 커널 주소 공간의 내용, 사용자 프로그램이 사용하는 함수, 프로그램의 실행 컴퓨터 시스템의 구조 interrupt가 들어왔는지 체크..
-
[Python] 1744 수묶기Algorithm/백준 2022. 12. 28. 21:22
1. 문제 📚 https://www.acmicpc.net/problem/1744 2. 입출력 예 📋 3. 알고리즘 ✅ - 최대가 나오기 위해선 음수에서 경우의 수 1) 음수 * 음수 경우의 수 2) 음수 + 음수 경우의 수 3) 음수 * 0 경우의 수 4) 음수 4가지 중에 최대 값을 양수는 경우의 수 1) 양수 * 양수 경우의 수 2) 양수 + 양수 경우의 수 3) 양수 3가지 중에 최대 값을 더해야한다 따라서 인풋을 따로 따로 받아주어 모든 경우의 수를 따져준당 4. 소스코드 💻 import sys input = sys.stdin.readline N = int(input().strip()) negative_arr = [] zero_arr = [] positive_arr = [] for i in ran..
-
[OS] 컴퓨터 시스템 구조Computer Science/OS 2022. 12. 27. 03:35
http://www.kocw.net/home/cview.do?lid=36f314da6dc42576 운영체제 운영체제는 컴퓨터 하드웨어 바로 위에 설치되는 소프트웨어 계층으로서 모든 컴퓨터 시스템의 필수적인 부분이다. 본 강좌에서는 이와 같은 운영체제의 개념과 역할, 운영체제를 구성하는 각 www.kocw.net System Structure & Program Execution 1 컴퓨터 시스템 구조, Mode bit, Timer, Device Controller, 입출력(I/O)의 수행, 동기식 입출력과 비동기식 입출력, 시스템콜(System Call), 인터럽트(Interrupt) 컴퓨터 시스템 구조 메모리: cpu 작업공간 무한루프를 도는 프로그램 → 계속 CPU만 사용 그래서 timer 라는 하드웨..
-
[Python] 1541 잃어버린 괄호Algorithm/백준 2022. 12. 27. 02:14
1. 문제 📚 https://www.acmicpc.net/problem/1541 2. 입출력 예 📋 3. 알고리즘 ✅ 그리디 -> 최소로 만들려면 - 앞에서 괄호로 묶어서 -를 최대한 많이 만들어줘야함 4. 소스코드 💻 import sys input = sys.stdin.readline().strip() input_arr = [] num = '' index = 0 temp = input # 숫자와 기호를 분리해주는 작업 while len(input) != 0: if input[0] == '-' or input[0] == '+': input_arr.append(int(num)) num = '' input_arr.append(input[0]) else: num += input[0] index += 1 inp..
-
[OS] 운영체제 정의, 기능, 분류, 구조Computer Science/OS 2022. 12. 27. 00:34
http://www.kocw.net/home/cview.do?lid=af8e05c97c6d60de 운영체제 운영체제는 컴퓨터 하드웨어 바로 위에 설치되는 소프트웨어 계층으로서 모든 컴퓨터 시스템의 필수적인 부분이다. 본 강좌에서는 이와 같은 운영체제의 개념과 역할, 운영체제를 구성하는 각 www.kocw.net Introduction to Operating Systems 운영체제란 무엇인가, 운영체제의 목적, 운영체제의 분류, 운영체제의 예, 운영체제의 구조 운영체제의 정의 컴퓨터 하드웨어 바로 윗단에 설치되는 소프트웨어를 의미한다. 하드웨어 위에 기본적으로 운영체제를 탑재하여 전원을 켰을 때, 손쉽게 사용할 수 있는 상태가 되도록 하는 것 커널 메모리에 상주하는 운영체제의 부분 운영체제 코드 중에서도 ..