Re: Can I 'yield' to the system?

2009-12-03 Thread Michael Ellery
Barry Brevik wrote:
> Re: Active Perl 5.8.8 running on Windows.
> 
> Back when I was doing some Assembly language programming, there was a
> system call to "yield" to the Windows operating system, in other words,
> give up the rest of your time slice.
> 
> Is there a way to do this with Perl? I'm writing an app that
> continuously loops waiting for something to do, and it would be good to
> give control back to the OS when idle. There is Win32::GUI::DoEvents(),
> but I am unsure if this really does the same thing.
> 

how about sleep ... or usleep (provided by Time::HiRes) ?

-Mike
___
Perl-Win32-Users mailing list
Perl-Win32-Users@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs


Can I 'yield' to the system?

2009-12-03 Thread Barry Brevik
Re: Active Perl 5.8.8 running on Windows.

Back when I was doing some Assembly language programming, there was a
system call to "yield" to the Windows operating system, in other words,
give up the rest of your time slice.

Is there a way to do this with Perl? I'm writing an app that
continuously loops waiting for something to do, and it would be good to
give control back to the OS when idle. There is Win32::GUI::DoEvents(),
but I am unsure if this really does the same thing.

Barry Brevik
___
Perl-Win32-Users mailing list
Perl-Win32-Users@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs