Skip to contentSkip to conversation

Clipper idle mode, usleep and alrm

DISCUSSION Stas Sergeev 1 participant 1 message May 14, 2004

lore
Share & tools
lore
#0 lore raw

Hello.

Quoted 2 lines · Maximiliano Curia

Doing an strace I see a lot of SIGALRM which, I presume, are waking it up all the time. Could it be?

Yes. For the apps that do the polling in a tight loop, this doesn't hurt however, as they'll fall asleep again immediately.
Clipper calls the interrupts that sleep, very infrequently, that's why SIGALRM makes it difficult to release the CPU in that case.