[운영체제] First-Fit, Best-Fit 구현
- 최초 등록일
- 2003.05.11
- 최종 저작일
- 2003.05
- 30페이지/ 압축파일
- 가격 3,000원
소개글
운영체제의 메모리할당 부분의 first-fit과 best-fit을 C로 구현한 것입니다.
상당히 어려운 내용이라 힘들게 구현한 숙제이기도 하죠.
random함수를 사용하여 메모리에 초당 할당되는 수를 마음대로 변경하실 수 있습니다.
참고하시구요..
에러하나없이 잘 돌아가니 많은 도움 되시길 바랍니다..
컴파일 실행환경
없음
본문내용
long int AllocSize[NUM_ALLOCATION]; /* Allocation Size */
long int AllocTime[NUM_ALLOCATION]; /* Allocation Time */
long int DeallocTime[NUM_ALLOCATION]; /* Deallocation time */
long int RefBlockNumber,TotalSimulTime;
long int AllocFailCount,AllocReqCount; /* The number of allocation failure, request */
double InterFrag,SumOfExterFrag; /* Internal Fragmentation, Sum of External Fragmentation */
long int TotAllocSize,TotReqSize; /* Total size of Allocated(Requested) Memory block */
long int CurAllocSize; /* Current Size of Allocated blocks */
struct free_head { /* Head of free list */
struct free_block *next;
} *fh,*uh;
압축파일 내 파일목록
random.cpp
alloc_time_10.dat
dealloc_time_50.dat
hw07.cpp
mem_size_10.dat
mem_size_50.dat
mem_size_100.dat
참고 자료
없음