Hi,

  I am experimenting with the scheduler on Linux 2.4.X  (Red Hat 7.3) and am
unable to get processes to time share with the SCHED_RR policy. They seem to
operating in a FIFO manner even when their scheduler is set to Round Robin.
Does you know if Round Robin scheduling works on linux 2.4X? Also, there is
some behavior that I observe that might help understand what's happening.
When I do a ps after I start prot (the main program), I see two processes
with name prot. So it probably means that the child never got execed. I
tried putting in a sched_yield() within the fork() of the parent but that
didn't help either. The parent still kept going on. When I put a sleep(1) in
the fork() of the parent, the child gets to run but never gives control back
to the parent. Any ideas? Enclosed are my test progs.

with thanks,
Madhav

 <<child.c>>  <<prot.c>> 



Attachment: child.c
Description: Binary data

Attachment: prot.c
Description: Binary data

Reply via email to