|
From: Mantz S. <sm...@ke...> - 2006-09-28 10:56:12
|
Hi,
I'm encountering performance problems. The code below runs on a linux
system with for abot 1400 cycles per second, not consuming a lot of CPU.
This is near the theoretic maximum. Under windows it runs at less than
800 cycles, taking 70% of the CPU, mostly kernel times. Any ideas.
for (;;) {
while (usb_interrupt_read(MyHandle, 0x88, (char*)Buffer,
sizeof(Buffer), 1000) < 0) ;
// build Command
usb_interrupt_write(MyHandle, 0x04, (char*)Command, 5, 1000);
}
Thanks,
Steffen
|