Can I change the scheduling policy and priority on linux-2.3.36 ?

I got a test program from this URL.
<ftp://ftp.uu.net/published/oreilly/nutshell/pthreads/examples.tar.Z>

My PC-Linux(Dual Celeron) always freeze when ``sched/sched.c '' execute.

root# ./sched
Argument required: d=default,r=roundrobin,t=roundrobin/priority,f=fifo,
                   i=inherit,p=fifo/priority

root# ./sched p
main()                          Testing FIFO/Priority Scheduling
main()                          setting priority(1-99) of thread 0 to 1

work_routine()  thread 0        I'm Alive
main()                          setting priority(1-99) of thread 1 to 50

!!! FREEZED !!!

``man pthread_setschedparam'' said, 
       The  realtime  scheduling policies SCHED_RR and SCHED_FIFO
       are available only to processes with superuser privileges.

``sh /usr/src/linux/scripts/ver_linux'' said,
-- Versions installed: (if some fields are empty or look
-- unusual then possibly you have very old versions)
Linux hipp 2.3.36 #3 SMP Fri Jan 7 21:53:47 JST 2000 i686 unknown
Kernel modules         2.1.85
Gnu C                  2.7.2.3
Binutils               2.9.1.0.15
Linux C Library        2.0.7
Dynamic linker         ldd (GNU libc) 2.0.7
Linux C++ Library      2.8.0
Procps                 1.2.9
Mount                  2.8a
Net-tools              1.46
Kbd                    0.96
Sh-utils               1.16
Modules Loaded         

----
Keizo Fujii, SFC, Keio Univ, Japan.
mailto:[EMAIL PROTECTED]
-
Linux SMP list: FIRST see FAQ at http://www.irisa.fr/prive/dmentre/smp-howto/
To Unsubscribe: send "unsubscribe linux-smp" to [EMAIL PROTECTED]

Reply via email to