학교 공부/운영체제 3

[운영체제 실습] Scheduling Practice

운영체제 project를 시작하기 전, 교안에 있는 실습 자료로 sceduling 내용에 관한 practice를 진행했다. practice 01 In xv6, yield is implemented but it is not the system call.First, implement yield system call so that user can call yield. (yield gives up its CPU)Make a user program in xv6 that created child process with fork(), and show that parent and child process print "Parent" and "Child" respectively in loop.  문제에서 언급된 대로, y..

[운영체제 실습] System Call 추가하기

코드 깃허브: https://github.com/splab-ELE3021/assignment-2021037756.git참고자료: https://eckrin.tistory.com/120 [OS] xv6 사용법 정리0. 쉘 명령어(커널명령어) 추가 Makefile의 UPROG와 EXTRA부분에 다음과 같이 추가해준다. 1) UPROG=\ ... _new\ 2) EXTRA=\ umalloc.c new.c\ 1. 파일 추가 README file in Xv6 is a generic file too. Searching for occurrences of README ieckrin.tistory.com  실습 목표   실습의 목표는 부모 process의 id를 리턴하는 getppid() system call을 add ..

728x90