Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #21969

Re: Tomcat Multi-Threading

Newsgroups comp.lang.java.programmer
Date 2013-02-01 11:23 -0800
References (3 earlier) <kealt4$h8s$1@news.m-online.net> <692563e7-016b-4f22-afaa-228965e501b8@googlegroups.com> <kebjq2$ing$1@news.m-online.net> <155371c3-be4a-45c9-bd88-ec640ea51013@googlegroups.com> <kegu8m$acs$1@news.m-online.net>
Message-ID <a72b1b1c-2b63-43cd-ba51-a4bc3cc2b7a8@googlegroups.com> (permalink)
Subject Re: Tomcat Multi-Threading
From Lew <lewbloch@gmail.com>

Show all headers | View raw


Magnus Warker wrote:
>  Lew wrote:
>> Magnus Warker wrote:
>>> Lew wrote:
> 
>>>> 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.
> 
>>> There is a mistake in your logical conclusion: Even if the VM is
>>> multi-threaded, the applications running on top of them may still be
>>> single-threaded. So your statement ("no applications are single
>>> threaded") is simply wrong.
> 
>> Even more important, the OP wants to know if multiple CPUs will help performance of a
>> Java app if it's multithreaded. Since the app runs in a multi-threaded context, if multiple
>> CPUs would speed up a multi-threaded app, they'd help *any* Java app.  I made this point
>> upthread;
> 
> I can only repeat what others already pointed out:

Indeed.

> You are confusing multi-threading in java applications and processes 
> that are multi-threaded from the os [sic] perspective.

No, I am not. I am referring to the fact that the Java application is multi-threaded 
from the OS perspective. No confusion involved.

>> I guess you decided to ignore it in order to snark, huh?
> 
> This is your job.

Let's try again. The OP wants to know if multiple CPUs will help an app. 

Now they were talking about Tomcat, in which the container is multi-threaded 
but the app you write is not. Sorta parallel, huh?

But everyone agrees that the presence of multiple threads in the parent engine 
means that the question of hardware speedup pertains.

Same with the JVM. The presence of multiple threads in the application, notwithstanding 
that they are part of the application's execution environment as with Tomcat, and 
not in the app itself (follow along now - this is the hard part), means that any influence 
of multiple CPUs on multiple threads will pertain.

So the fact that these threads are part of the JVM's infrastructure and not in the 
mental model of the app itself is utterly irrelevant. 

As would be obvious to you were you paying attention and able to follow along.

I gave you the benefit of the doubt with respect to those assumptions. Ergo, I 
conclude that the logic of my point has not escaped you. Ergo, I conclude you 
have another motive for disagreeing publicly. I only can think of one such motive, 
the desire to snark.

So I conclude on the evidence that the purpose of your response is to snark.

Otherwise I have to conclude that you have diminished capacity, and I do not believe that.

-- 
Lew

Back to comp.lang.java.programmer | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Tomcat Multi-Threading zigzagdna@yahoo.com - 2013-01-29 17:59 -0800
  Re: Tomcat Multi-Threading Arne Vajhøj <arne@vajhoej.dk> - 2013-01-29 21:21 -0500
    Re: Tomcat Multi-Threading zigzagdna@yahoo.com - 2013-01-29 19:48 -0800
  Re: Tomcat Multi-Threading Lew <lewbloch@gmail.com> - 2013-01-29 18:31 -0800
    Re: Tomcat Multi-Threading Arne Vajhøj <arne@vajhoej.dk> - 2013-01-29 21:39 -0500
      Re: Tomcat Multi-Threading Lew <lewbloch@gmail.com> - 2013-01-29 22:54 -0800
        Re: Tomcat Multi-Threading Arne Vajhøj <arne@vajhoej.dk> - 2013-01-30 22:09 -0500
      Re: Tomcat Multi-Threading Magnus Warker <magnus@mailinator.com> - 2013-01-30 09:34 +0100
        Re: Tomcat Multi-Threading Lew <lewbloch@gmail.com> - 2013-01-30 08:28 -0800
          Re: Tomcat Multi-Threading Magnus Warker <magnus@mailinator.com> - 2013-01-30 18:04 +0100
            Re: Tomcat Multi-Threading jlp <jlp@jlp.com> - 2013-01-30 18:44 +0100
            Re: Tomcat Multi-Threading Lew <lewbloch@gmail.com> - 2013-01-30 09:49 -0800
              Re: Tomcat Multi-Threading Arne Vajhøj <arne@vajhoej.dk> - 2013-01-30 22:17 -0500
              Re: Tomcat Multi-Threading Magnus Warker <magnus@mailinator.com> - 2013-02-01 18:33 +0100
                Re: Tomcat Multi-Threading Lew <lewbloch@gmail.com> - 2013-02-01 11:23 -0800
                Re: Tomcat Multi-Threading Arne Vajhøj <arne@vajhoej.dk> - 2013-02-01 17:36 -0500
                Re: Tomcat Multi-Threading Magnus Warker <magnus@mailinator.com> - 2013-02-03 07:17 +0100
          Re: Tomcat Multi-Threading lipska the kat <"nospam at neversurrender dot co dot uk"> - 2013-01-30 17:49 +0000
            Re: Tomcat Multi-Threading zigzagdna@yahoo.com - 2013-01-30 11:29 -0800
              Re: Tomcat Multi-Threading Leif Roar Moldskred <leifm@dimnakorr.com> - 2013-01-30 14:30 -0600
                Re: Tomcat Multi-Threading Arne Vajhøj <arne@vajhoej.dk> - 2013-01-30 22:00 -0500
              Re: Tomcat Multi-Threading Arne Vajhøj <arne@vajhoej.dk> - 2013-01-30 21:59 -0500
            Re: Tomcat Multi-Threading Lew <lewbloch@gmail.com> - 2013-01-30 14:48 -0800
              Re: Tomcat Multi-Threading Arne Vajhøj <arne@vajhoej.dk> - 2013-01-30 22:21 -0500
                Re: Tomcat Multi-Threading lipska the kat <"nospam at neversurrender dot co dot uk"> - 2013-01-31 08:47 +0000
                Re: Tomcat Multi-Threading Arne Vajhøj <arne@vajhoej.dk> - 2013-02-01 17:39 -0500
          Re: Tomcat Multi-Threading Arne Vajhøj <arne@vajhoej.dk> - 2013-01-30 22:12 -0500
  Re: Tomcat Multi-Threading lipska the kat <"nospam at neversurrender dot co dot uk"> - 2013-01-30 08:51 +0000

csiph-web