sched_yield() on "SCHED_FIFO"

NIIBE Yutaka (gniibe@chroot.org)
Fri, 30 Jul 1999 13:37:13 +0900


Suzaki-san,

Kuniyasu SUZAKI writes:
> The process is executed by super user. I was thinking this process
> could measure the time for context switch on the real time class
> "SCHED_FIFO" and it was measured on kernel 2.0.36 and Solaris. But on
> 2.2.5-15 the parent process didn't yield.

Result of my environment (two CPU PII 266MHz x2).

# ./context
Context swicth time 6 us from 11792 to 11793
Context swicth time 13 us from 11793 to 11792
Context swicth time 4 us from 11792 to 11792
Context swicth time 10 us from 11792 to 11792
Context swicth time 3 us from 11792 to 11793
Context swicth time 4 us from 11793 to 11792
Context swicth time 5 us from 11792 to 11793
Context swicth time 3 us from 11793 to 11792
Context swicth time 5 us from 11792 to 11793
# cat /proc/version
Linux version 2.2.10 (root@qwe) (gcc version egcs-2.91.66 19990314 (egcs-1.1.2 release)) #1 SMP Sat Jul 24 17:41:19 JST 1999
#

Sometimes it switch to other, sometimes not.

-- 
Niibe Yutaka

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/