[Jprogramming] Getting rid of busy form of waiting

robert therriault bobtherriault at mac.com
Tue Jan 7 20:52:44 UTC 2014


The demo's provided under the Studio Menu in JHS are really the thing to study for this. Start with demo1 and be ready to use some web skills, as that is the basis for the JHS front end.

I still think that Gosi's page from the NYCJUG is a really good starting resource.

http://www.jsoftware.com/jwiki/NYCJUG/2011-02-08/HelloWorldInJHS

cheers, bob

On Jan 7, 2014, at 11:54 AM, Devon McCormick <devonmcc at gmail.com> wrote:

> Maybe this: http://www.jsoftware.com/jwiki/Trash/System/Beta/HelloWorld ?
> 
> 
> 
> On Tue, Jan 7, 2014 at 2:39 PM, Jan Jacobs <jan.wm.jacobs1 at gmail.com> wrote:
> 
>> 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 <devonmcc at 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.lam at 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.jacobs at 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.jacobs at sommaps.com
>> ----------------------------------------------------------------------
>> 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



More information about the Programming mailing list