[컴퓨터 운영체제] OS 프로그래밍
- 최초 등록일
- 2002.10.27
- 최종 저작일
- 2002.10
- 4페이지/ 한컴오피스
- 가격 1,000원
소개글
이 프로그램은 운영체제 수업중 스케줄링 알고리즘에 따라 최소작업 우선(Shortest-Job-First)스케줄링에 맞게 리눅스상에서 C언어로 구현한 것입니다.
부모로부터 상속받는 자녀에 대한 데이터를 외부에서 text파일에서 받아서 그 것들이 언제 생성되고 언제 죽는지 보여주는 것입니다.
이거 짠다고 무지 힘들었는데~~
잘 쓰시길~~ OS수업듣는 사람은 꼭 받아서 보세여~~
잘짠거니 숙제가 나오면 내면 A+은 받을걸요~~
목차
< 소스 >
< child.txt >
< output >
본문내용
<소스>
#include <stdio.h>
#include <unistd.h>
int input( int num1, int creat, int creatp, int brustc, int brustp, int waitp);
/*num1: child( n ) process number */
/*wait: child( n ) process waiting time */
/*waitp: child(n-1) process waiting time */
/*creat: child( n ) process creating time */
/*creatp: child(n-1) process creating time */
/*brustc: child( n ) process cpu-burst time */
/*brustp: child(n-1) process cpu-burst time */
void main(int argc, char *argv[])
{
int num[20];
/* process number */
int time[20];
/* process creating time*/
int run[20];
/* cpu-burst time*/
int newtime = 0;
int i = 0;
/* index */
참고 자료
없음