Re: Windows Schedule!

#6523

speedvoipok
Participant

Hi Vadim:
I can make sure that in pdedemo.cpp src mac must match that of NIC over which packets send. I think loopback cause maybe be excluded from our consideration.
Today I have taken another experiment on PDE, when adding extra code into pdedemo.cpp, all things are ok, CPU overhead revert to normal level, about 2~7%.
===============================================================================================
/* yield control to windows to avoid high
CPU overhead */
while (GetMessage(&msg, NULL, 0, 0))
{
TranslateMessage(&msg);
DispatchMessage(&msg);
}
===============================================================================================
I feel that it has something to with Windows thread or process schedule.