of course they would all 'compete'.
try not to spawn threads in a servlet environment if you dont have to.
but there is no restriction on spawning threads.

-----Original Message-----
From: Jayprakash_Gonella [mailto:[EMAIL PROTECTED]
Sent: Tuesday, May 18, 2004 4:47 PM
To: [EMAIL PROTECTED]
Subject: Re: Thread Question


When we can embed multi-threaded code in a Servlet, then how is it going to
compete with the Threads spawned by the Container? Won't they both clash for
the CPU?

regards,
-jayprakash

-----Original Message-----
From: A mailing list for discussion about Sun Microsystem's Java Servlet
API Technology. [mailto:[EMAIL PROTECTED] Behalf Of Endre
Stølsvik
Sent: Tuesday, May 18, 2004 7:55 PM
To: [EMAIL PROTECTED]
Subject: Re: Thread Question


On Tue, 18 May 2004, Zerbe John W wrote:

| Why do you think you need to start threads in a J2EE application?

This is "-SERVLET- interest".. So I presume he's talking about servlets.
Yes, he is.

The answer to the original question is most probably "yes".

Endre

|
| -----Original Message-----
| From: A mailing list for discussion about Sun Microsystem's Java Servlet
| API Technology. [mailto:[EMAIL PROTECTED] Behalf Of
| Karthikeyan
| Sent: Tuesday, May 18, 2004 4:46 AM
| To: [EMAIL PROTECTED]
| Subject: Thread Question
|
|
| Hi all,
|
|   I want to create 10 threads for an Object.  If it exceed 10 threads
| then I want to create new instance of that Object.
|
|   Is it possible in servlet.
|
|   Have a great day.
|
| Karthikeyan B
|

___________________________________________________________________________
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
************************************************************************** 
This email (including any attachments) is intended for the sole use of the
intended recipient/s and may contain material that is CONFIDENTIAL AND
PRIVATE COMPANY INFORMATION. Any review or reliance by others or copying or
distribution or forwarding of any or all of the contents in this message is
STRICTLY PROHIBITED. If you are not the intended recipient, please contact
the sender by email and delete all copies; your cooperation in this regard
is appreciated.
**************************************************************************

___________________________________________________________________________
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

___________________________________________________________________________
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