Re: "Multicore may be bad for Java" (and how about .NET)
- From: "Paul Nichols [TeamB]" <paul@xxxxxxxx>
- Date: Sat, 02 Dec 2006 03:49:46 -0500
roman modic wrote:
Hello!That is one of the things Java 6 is addressing actually. I am sure NET will too.
"Dennis Landi" <nada@xxxxxxxx> wrote in message news:456d3058$1@xxxxxxxxxxxxxxxxxxxxxxxxxhttp://www.devwebsphere.com/devwebsphere/2006/11/multicore_may_b.html#comment-25646600
Applicaple to .NET as well?
And what about Win32? I'm thinking about writing
an application that for some non-gui processes
will run multiple executables (configurable limit)
instead of threads. Executables will connect
to different servers and collect the data/results
in the shared local database (like Advantage
Local Database) ...
Sun has been entertaining the idea for quite some time of developing smaller JVMs that run in independent processes, somewhat like SAP runs its applications. Multi core processors will greatly make this type of functionality a much better reality.
The problem with running multiple exes as you are considering, is that each exe is still dependent upon each other; that is, if one dies in the process, they will all die. That is not what the Java world is talking about. They are speaking of shared processes through multiple VMs that are using thread pool management to maintain user state on each process running. In this manner, you can take advantage of multiple cores running in different processes (and in different cores) through a separate VM process that is assigned through session management. Why is this important? Well think of it this way. Each user has his own session, where the application runs only his instance in his own isolated VM. If that session dies, it is only applicable to that session; others sessions still run, since the VMs are assigned on a session by session basis.
Of course this article, while provocative, also has flaws. The author misapprehends that the J2EE stack runs in a single threaded environment (which it does not). If he were to limit this discussion to SWING alone, he would be correct, since the Swing model uses Listeners that use a wait state (for loopbacks) that are interconnected through a single threadpool. This is not true for J2EE and has never been true for J2EE. Multiple core processing has always been core to the later J2EE implementations. IBMs new VMs and JITs really take advantage of this.
.
- References:
- Blog: "Multicore may be bad for Java" (and how about .NET)
- From: Dennis Landi
- Re: "Multicore may be bad for Java" (and how about .NET)
- From: roman modic
- Blog: "Multicore may be bad for Java" (and how about .NET)
- Prev by Date: Re: A suggestion for the next Delphi hour
- Next by Date: Re: A suggestion for the next Delphi hour
- Previous by thread: Re: "Multicore may be bad for Java" (and how about .NET)
- Next by thread: Re: "Multicore may be bad for Java" (and how about .NET)
- Index(es):
Relevant Pages
|
|