Well I think it's according to your expectations, what you was expecting could you let me know.....
according to your code..
th2 is with MAX_PRIORITY th3 is then and at last is th1 [ September 26, 2006: Message edited by: Ankur Sharma ]
The Best way to predict your future is to create it
Joined: Jul 11, 2001
While a thread sleeps, other threads are allowed to execute. Priority only comes into play when two threads try to do something at the same time, which is not guaranteed to happen at all for our example.
Moving to our threads forum...
The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus