Subj : [Rhino embedded] getting the main thread within JS To : netscape.public.mozilla.jseng From : "rodney white" Date : Wed Feb 26 2003 12:56 am I should say that I am a new to this Rhino stuff...that being said I am trying to figure out a way to get access to causing the main thread to sleep 1-5 ms during a processing loop. The environment: C++ shell loading the JVM via JNI then loading the JS(Rhino) engine to run on specific files. The JavaScript code is doing all the work of the application; when it his a inner loop the processor utilization hits 95%+ causing the machines to slow to a crawl. If someone knows a way to cause the JVM invocation, JS shell, or JS code to slow utilization, please pass it my way. Thanks in advance, --rw .