스케쥴링 관련 질문...
글쓴이: air74 / 작성시간: 수, 2005/03/23 - 4:59오후
특정 프로세스의 priority 를 높이기 위하여 다음과 같이 nice setting 을 해주고 root 로 실행을 하였는데.. -1 값을 (failure) 리턴 합니다. 어떻게 해주어야 하나요?
retVal = nice(-1);
if(retVal < 0){
printf("\n[CTDB] CTDB nice set fails ..");
exit(retVal);
} else {
printf("\n[CTDB] CTDB nice set to high priority ..");
}Forums:


perror( "What?" );해서 오류를 출력하고 exit 해
perror( "What?" );
해서 오류를 출력하고 exit 해보세요
---
http://coolengineer.com
댓글 달기