Path: csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder2.hal-mli.net!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!border1.nntp.ams2.giganews.com!border3.nntp.ams.giganews.com!Xl.tags.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!local2.nntp.ams.giganews.com!nntp.bt.com!news.bt.com.POSTED!not-for-mail NNTP-Posting-Date: Thu, 31 Jan 2013 02:47:49 -0600 Date: Thu, 31 Jan 2013 08:47:47 +0000 From: lipska the kat <"nospam at neversurrender dot co dot uk"> Organization: Trollbusters 3 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:11.0) Gecko/20120410 Thunderbird/11.0.1 MIME-Version: 1.0 Newsgroups: comp.lang.java.programmer Subject: Re: Tomcat Multi-Threading References: <510887fc$0$286$14726298@news.sunsite.dk> <692563e7-016b-4f22-afaa-228965e501b8@googlegroups.com> <3283e20d-e72b-41df-98dc-9b539e149db9@googlegroups.com> <5109e346$0$295$14726298@news.sunsite.dk> In-Reply-To: <5109e346$0$295$14726298@news.sunsite.dk> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit Message-ID: Lines: 43 X-Usenet-Provider: http://www.giganews.com X-AuthenticatedUsername: NoAuthUser X-Trace: sv3-vsMTw+RY5t9CPQuZ6rcGHkMq27QFIb35ZbHatwNoZst1U+GMRMWBMP1DgXdwAl+sqeBj/GQltIOrTYl!SYhuyirucf58RQg8QSHvsjoBTAXZdoFEPd3RjwfVwu4O2D+/VwIcGv+Ze9zsZol0patyj91CWko= X-Complaints-To: abuse@btinternet.com X-DMCA-Complaints-To: abuse@btinternet.com X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.40 X-Original-Bytes: 3275 Xref: csiph.com comp.lang.java.programmer:21914 On 31/01/13 03:21, Arne Vajhøj wrote: > On 1/30/2013 5:48 PM, Lew wrote: >> lipska the kat wrote: >>> Lew wrote: [snip] > What we are skeptical about is you claim that all Java apps > are multi threaded. That seems to be based on a rather unsual > definition of multi threaded. I think this is the point. What exactly is a multi-threaded application. The OP asked a question re Tomcat When you write a web app you have no conventional Java entry point (public static void main(String[] args), you are actually extending the server. IIRC the Tomcat docs explicitly advise against instantiating new threads. I don't think that anyone would argue against the fact that *Tomcat* is a multi-threaded application. Does this make your web-app multi-threaded ... Well yes it does but only as a *side effect* of the way the container manages multiple requests for the same resource, if you extend a multi-threaded application then by implication your application is multi-threaded. That's my view of things anyway. Applications with a single public static void main(String args[]) entry point are different. If you don't explicitly create new Threads then I don't think you would call your application multi-threaded. The fact the the JVM uses multiple threads to do houskeeping tasks is an implementation detail. The clincher is that the JVM isn't a Java application (in the way that Tomcat is). There is a difference of course between green and native threads but that discussion is beyond the scope of this document :-) Or maybe you disagree lipska -- Lipska the Kat©: Troll hunter, sandbox destroyer and farscape dreamer of Aeryn Sun