This should be possible to do without consuming all the CPU time. It
sounds as though you might be doing something in a loop that is using up
the CPU. If you are actually putting the thread to sleep for the correct
amount of time, the thread is not consuming any cpu cycles. Post the
thread code.

thanasis wrote:
>
> When the user fires an action in an applet I make a urlConnection to a
> servlet and do some things. What I want is to start a thread at that
> time which will sleep for 10 days and then make an action ( if possible
> that action to be to call another servlet ). Of course in the minwhile
> the user should be able to get out of the applet that began this, close
> the browser, restart the browser and in general have no constraints.
>
>    As  I see it the thread should run in the servletContext which will
> be active for all this time.I have tried to start the Thread in the
> servlet (which is called by the applet)  in the service context (inside
> doPost after the response to the applet has been given ) and though it
> works it causes the server (IAS 4.0) to literaly crowl. It consume the
> whole cpu time and therefore it is impossible for the user to continue .

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to