Home › Forums › Discussions › Support Portal › Why CPU overhead reach abnormal 100%???Strange!!!!!!!!!!!!!! › Re: Windows Schedule!
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))
I feel that it has something to with Windows thread or process schedule.