pthread_yield()랑 sched_yield()가 같은 역활을 하는 것으로 보이는 문서를
발견했습니다.
pthread_yield는 리눅스에서
sched_yield는 솔라리스에서
그럼, 솔라리스에서 사용하는 yield함수는
리눅스에서 무엇으로 사용하면 될까요?
man 하면 이렇게 나오네요..
솔라리스에서 man yield하면 나옴
System Calls yield(2)
NAME
yield - yield execution to another lightweight process
SYNOPSIS
#include <unistd.h>
void yield(void);
DESCRIPTION
The yield() function causes the current lightweight process
to yield its execution in favor of another lightweight pro-
cess with the same or greater priority.
방금보니까..
pthread_yield()랑 sched_yield()가 같은 역활을 하는 것으로 보이는 문서를
발견했습니다.
pthread_yield는 리눅스에서
sched_yield는 솔라리스에서
그럼, 솔라리스에서 사용하는 yield함수는
리눅스에서 무엇으로 사용하면 될까요?
man 하면 이렇게 나오네요..
솔라리스에서 man yield하면 나옴
System Calls yield(2)
NAME
yield - yield execution to another lightweight process
SYNOPSIS
#include <unistd.h>
void yield(void);
DESCRIPTION
The yield() function causes the current lightweight process
to yield its execution in favor of another lightweight pro-
cess with the same or greater priority.
SEE ALSO
thr_yield(3T)
SunOS 5.7 Last change: 20 Jul 1993
실력이 있으면 삶이 편하다... 영차 영차...
댓글 달기