Rajorshi Dam(deleted)
06/02/2010 9:56 PM
post55969
|
Hello Dennis,
I ran the 1.c program that you attached and it showed the fairness of the RR scheduler. Thanks for the program.
But I am still not able to see prints coming out of both the threads in my original problem code, inspite of using
fflush. I am attaching the newly modified code. I ran this on QNX 6.4.1 but only the thread1 keeps getting printed in
that case. If I use sleep instead of fflush, the program works fine and both the threads print data. That is the reason
why I started suspecting the RR scheduler. Also when I run the same program on Ubuntu Linux 9.10, both the threads print
out data. Only when I am using QNX (I used 6.4.1), the thread 2 never prints anything. Can you please explain this?
|
|
|