Tech Support > Microsoft Windows > Development Resources > Windows Semaphores Sinalization
Windows Semaphores Sinalization
Posted by tcavaleiro on November 20th, 2006


Hi there,

I have a program that calculates (estimates) the time of the
Wait/Signal operations on the Win32 semaphores and I'm evaluating the
times changing the process priorities.

When I define the priority of the process as normal and when I make the
test with the priority level to high, the time decreases as expected.

My question is the following, when I define the priority to RealTime I
get a worst time, why?

The thread which executes the ReleaseSemaphore API function, is the one
who gonna signalize the Semaphore? It will be a system thread?
I have an idea that (I think it's a system thread) because of the
priority of the process (RealTime), it will compete with the system
(working thread) that will signalize the semaphore.

I'm not sure of this, so if you people could help me I appreciate it!


With best regards,
Tiago Cavaleiro

PS. Sorry If I Couldn't express very well (It passed a while without
practicing my English).