|
-
Problem with thread priorities
In my C++ console application running under Windows XP, a thread with THREAD_PRIORITY_HIGHEST (Thread B) is preempting a thread with THREAD_PRIORITY_TIME_CRITICAL (Thread A).
Thread B is blocking on a WaitForSingleObject() call. Thread A will wake Thread B with a SetEvent() call. But since Thread A has higher priority, I would expect Thread A to complete running before Thread B will run. But that’s not the case. As soon as Thread A issues the SetEvent() call, Thread B starts running even though it has a lower priority than Thread A.
I disabled priority boost, thinking that might be the culprit, but I still see this happening. Does anyone know what else could be causing this?
Thanks for your help.
Similar Threads
-
By AndreRSISE in forum Java
Replies: 0
Last Post: 02-26-2007, 08:31 PM
-
Replies: 1
Last Post: 10-07-2006, 09:21 AM
-
By somnio85 in forum Java
Replies: 2
Last Post: 03-01-2006, 02:37 PM
-
By aesoprock00 in forum Java
Replies: 2
Last Post: 01-28-2006, 06:18 PM
-
Replies: 1
Last Post: 10-29-2000, 04:51 PM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks