Thank you for the help. We thought also about "sleeping", we give it a try. Devon, could you pls give a pointer; I do not have experience with JHS. Jan.
On Tue, Jan 7, 2014 at 6:58 PM, Devon McCormick <devon...@gmail.com> wrote: > Is there a way to do event-driven input using JHS? > > > On Tue, Jan 7, 2014 at 11:15 AM, bill lam <bbill....@gmail.com> wrote: > > > 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 > > > > > > -- > Devon McCormick, CFA > ---------------------------------------------------------------------- > For information about J forums see http://www.jsoftware.com/forums.htm > -- 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