Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!us.feeder.erje.net!feeder.erje.net!eu.feeder.erje.net!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: Wed, 30 Jan 2013 11:49:27 -0600 Date: Wed, 30 Jan 2013 17:49:24 +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> In-Reply-To: <692563e7-016b-4f22-afaa-228965e501b8@googlegroups.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit Message-ID: Lines: 34 X-Usenet-Provider: http://www.giganews.com X-AuthenticatedUsername: NoAuthUser X-Trace: sv3-F42tJO2PL0L5YW4LC2xSEnh1KoOm27lT349KK6FMyQENCZYAujyxMep7m6vbL4gWgFKg2Z45az9SEMu!aVrA3p4xLGwHl81SS0hsfl/2ATvFn/J5UoGcsBGChdyWUXn9ve+ZNRh8TcZWa+Kik0JI/SEyrdg= 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: 2663 Xref: csiph.com comp.lang.java.programmer:21878 On 30/01/13 16:28, Lew wrote: > Magnus Warker wrote: >> Arne Vajhøj wrote: >>> Lew wrote: >>>> In the world of Java, no applications are single threaded. >>> I think most people would consider a console app with no >>> threads to be single-threaded. >> >> There is even no relationship between a programming language and the >> threading architecture of an application. The fact that Java supports >> multi-threading does not lead to the fact that every Java application is >> multi-threaded. > > No, the first fact does not lead to the second fact, but the second fact is nevertheless true. > > The JVM is multi-threaded and has, what, a minimum of four? at any rate severa; threads running > even if the application only uses one of them. I think you may be confusing the VM and the threads it uses to do housekeeping (garbage collection, assignment of execution threads to multiple processors etc) with the application running in the VM, which, unless you explicitly create a new Thread in your code will by default be single threaded. > Do a little research. Well quite lipska -- Lipska the Kat©: Troll hunter, sandbox destroyer and farscape dreamer of Aeryn Sun