[dancer-users] blocking

Rick Leir richard.leir at canadiana.ca
Tue Nov 17 14:02:17 GMT 2015

On Tue, Nov 17, 2015 at 7:00 AM, <dancer-users-request at dancer.pm> wrote:

>     delayed {
>       my $TextToWrite = ReturnText();
>       sleep(10); # Do something that takes a few seconds
>       content "$TextToWrite";
>       done;
>    };

The sleep call will always cause blocking, even a sleep(0). Likewise a
flush. In the sense that there is a context switch to some other thread or

How are you testing whether it is blocking? Sorry, I do not know what you
are trying to do.

Linux will not schedule a cpu intensive task to the exclusion of I/O. You
can affect its scheduling using nice:

If you really want nonblocking then you can look at nice for io
or spawn a C program with pthreads and freeze your screen!
cheers -- Rick
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.preshweb.co.uk/pipermail/dancer-users/attachments/20151117/2c073f10/attachment.html>

More information about the dancer-users mailing list