May be make it sleep awhile in the tight loop, eg

usleep 1000

Вт, 07 янв 2014, Jan Jacobs писал(а):
> ls,
> I have a busy form of waiting for standard input and use the
> function stdin=:1!:1&3 for this purpose.
> In a Linux environment (using jconsole) this consumes a lot of CPU cycles.
> Is there a better way?
> Thanks in advance,
> Jan.
> 
> -- 
> Jan Jacobs
> Esdoornstraat 33
> 5995AN Kessel
> W: www.sommaps.com
> T: +31 77 462 1887
> M: +31 6 23 82 55 21
> E: jan.jac...@sommaps.com
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm

-- 
regards,
====================================================
GPG key 1024D/4434BAB3 2008-08-24
gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3
gpg --keyserver subkeys.pgp.net --armor --export 4434BAB3
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to