Re: [AD] proposal: al_sleep()

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


On Fri, 2 Jan 2004, Elias Pschernig wrote:

> And in Linux, my experience is that releasing CPU improves
> responsiveness of my programs compared to running on 100% CPU. (I can't
> explain why this would be the case though. Probably the linux scheduler
> penalties apps being 100% busy, and the sched_yield doesn't change
> anything in that.)

yield_timeslice() should improve responsivness of other programs not the
program calling it. It simply makes busy waits more polite allowing other
programs to take a chance. And busy waits are a must in current poll-like
input interface of Allegro.

Have a nice day.

Stepan Roh




Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/