unix/linux schedule problem, need high end to help.# Unix - 噫吁兮,危乎高哉
t*q
1 楼
hi, I try to make my program with a real time fifo or rr
schedul,
so it will run with the maximum CPU time
this is a three thread program.
main process lanch 2 thread.
I put the code in the main function since thread will run in
the same
memory space of the process.
but system just locked when it run, even assign the min_sch
+1 will lock
system. if do not assign new schedule then runs ok.
what is the problem? I want to run this as a soft real-time
under linux
can any high hand give me some hint
schedul,
so it will run with the maximum CPU time
this is a three thread program.
main process lanch 2 thread.
I put the code in the main function since thread will run in
the same
memory space of the process.
but system just locked when it run, even assign the min_sch
+1 will lock
system. if do not assign new schedule then runs ok.
what is the problem? I want to run this as a soft real-time
under linux
can any high hand give me some hint