Uncontrolled vocabularies
"I try my best to make *all* my posts nice, even when I feel upset" -- Philippe Maquet
"I'm not back." - Bill Harding, Twister
Uncontrolled vocabularies
"I try my best to make *all* my posts nice, even when I feel upset" -- Philippe Maquet
Uncontrolled vocabularies
"I try my best to make *all* my posts nice, even when I feel upset" -- Philippe Maquet
"I'm not back." - Bill Harding, Twister
However what i don't understand is that when a current thread performing synchronized code and is forced to give the processor to other thread the lock is released. Isn't a Object that was synchronized left in a corrupted state in such a scenario. If so how to take care of such a thing.
Uncontrolled vocabularies
"I try my best to make *all* my posts nice, even when I feel upset" -- Philippe Maquet
"I'm not back." - Bill Harding, Twister
3) A thread with a higher priority would be given timeslice whether yield is called or not.
About your example situation: priorities have no effect on a thread when its in the waiting state, only when its in ready/running.
I guess the main point I need to make here is that priorities are an entirely separate issue from synchronization, because priorities only affect threads in the ready and running states.