Results 1 to 3 of 3
Thread: how to schedule threads
|
Enjoy an ad free experience by logging in. Not a member yet? Register.
|
|
-
04-14-2009 #1
- Join Date
- Apr 2009
- Posts
- 9
how to schedule threads
How to make a thread non-preemptive dynamically?
This thread should execute a segment of code in such a way that, if this thread enters into this segment, no other thread can be scheduled till this segment execution is over.
I am trying to use pthread_setschedparam but does not seem to work.
-
04-16-2009 #2
- Join Date
- Apr 2009
- Location
- I can be found either 40 miles west of Chicago, in Chicago, or in a galaxy far, far away.
- Posts
- 14,038
Didn't you ask this question elsewhere (scripts and programming forum)? I answered it there...
Sometimes, real fast is almost as good as real time.
Just remember, Semper Gumbi - always be flexible!
-
04-16-2009 #3
- Join Date
- Apr 2009
- Posts
- 9
ya.... thanks for ur reply... i had posted this question on both the forums since i was not sure as to which was the most appropriate forum for this discussion...
we will continue our discussion over there.