multicore

How can I Monitor cpu usage per thread of a java application in a linux multiprocessor environment?

Hello, I'm running a multithreaded java app in Linux RedHat 5.3 on a machine that has 8 cores (2 quad-core cpu's). I want to monitor the cpu usage of each thread, preferably relative to the maximal cpu it can get (a single thread running on 1 of the cores should go up to 100% and not 12.5%). Can I do it with jconsole/visualVM? Is ther...

Threads & Processes Vs MultiThreading & Multi-Core/MultiProcessor : How they are mapped?

I was very confused but the following thread cleared my doubts: Multiprocessing, Multithreading,HyperThreading, Multi-core But it addresses the queries from the hardware point of view. I want to know how these hardware features are mapped to software? One thing that is obvious is that there is no difference between MultiProcessor(=Mut...

Can XSLT processors be multi-threaded?

Hi everyone, I'm fishing for approaches to a problem with XSLT processing. Is it possible to use parallel processing to speed up an XSLT processor? Or are XSLT processors inherently serial? My hunch is that XML can be partitioned into chunks which could be processed by different threads, but since I'm not really finding any documentat...

Thread behavior on multicore machines

Does the threads of a single process run in parallel on a multi-core machine on windows XP? Is the behavior same on different windows versions (windows server editions) I have heard that only threads of different processes run in parallel. ...

How can I use my multiple cored dedicated server to run my java application?

I have a game built in a java environment and I use JVM. I have 4 cores @ 2.4Ghz and my server is only using one of those cores... I've tried and searched and I still have no guides to setup multiple cores to run the game like, say 1 core for running the character saving + loading, and 1 core for the server itself, and 1 core for a hel...

Segmentation fault only when running on multi-core

I am using a c++ library that is meant to be multi-threaded and the number of working threads can be set using a variable. The library uses pthreads. The problem appears when I run the application ,that is provided as a test of library, on a quad-core machine using 3 threads or more. The application exits with a segmentation fault runtim...

How can I know/see on which core a thread run ? (In win XP)

Hi, If I have a multi-thread program, how can I know on which core each thread run ? Is there any another solution for win XP in C# ? I try this: [DllImport("ntdll"), SuppressUnmanagedCodeSecurity] public static extern int NtGetCurrentProcessorNumber(); and I get this exception: System.EntryPointNotFoundException was unhandled ...

multicore programming in Haskell - Control.Parallel

I'm trying to learn how to use the Control.Parallel module but I think I didn't get it right. I'm trying to run the following code (fibs.hs): import Control.Parallel fib :: Int -> Int fib 0 = 0 fib 1 = 1 fib n = p `par` (q `pseq` (p + q)) where p = fib (n-1) q = fib (n-2) main = print $ fib 30 I compiled this w...

Running methods on different cores on python

Is there any easy way to make 2 methods, let's say MethodA() and MethodB() run in 2 different cores? I don't mean 2 different threads. I'm running in Windows, but I'd like to know if it is possible to be platform independent. edit: And what about http://docs.python.org/dev/library/multiprocessing.html and parallel python ? ...

Performance impact of Processes vs Threads

Clearly if performance is critical it makes sense to prototype and profile. But all the same, wisdom and advice can be sought on StackOverflow :) For the handling of highly parallel tasks where inter-task communication is infrequent or suits message-passing, is there a performance disadvantage to using processes (fork() etc) or threads...

Was Visual Studio 2008 or 2010 written to use multi cores?

basically i want to know if the visual studio IDE and/or compiler in 2010 was written to make use of a multi core environment (i understand we can target multi core environments in 08 and 10, but that is not my question). i am trying to decide on if i should get a higher clock dual core or a lower clock quad core, as i want to try and f...

How can I determine programmatically whether on multi-core, hyperthreading or multi-processor?

I know how to get the processor type, perhaps that's the only way, but I'm actually looking for a way to determine from an application whether it's running on a multi-core processor or on a hyper-threading single-core processor. (background: the hosting providers of some of my clients are very vague about what resources they make availa...

Given disk is slow and multiple cores does on the fly decompression make sense for performance?

It used to be that disk compression was used to increase storage space at the expense of efficiency but we were all on single processor systems back then. These days there are extra cores around to potentially do the decompression work in parallel with processing the data. For I/O bound applications (particularly read heavy sequentia...

What advantages are there to programming for a non-cache-coherent multi-core machine?

What advantages are there to programming for a non-cache-coherent multi-core machine? Cache_coherence has many benefits, but how would one take advantage of the opposite of this feature - an independent cache for each individual core. What programming paradigm and to what particular practical problems would such an architecture be benefi...

How to ensure Java threads run on different cores

Hello, I am writing a multi-threaded application in Java in order to improve performance over the sequential version. It is a parallel version of the dynamic programming solution to the 0/1 knapsack problem. I have an Intel Core 2 Duo with both Ubuntu and Windows 7 Professional on different partitions. I am running in Ubuntu. My prob...

How can I make my Perl script use multiple cores for child processes?

Hi all, I'm an aerospace engineering student, and I'm working on a senior capstone project. One of the mathematical models I'm developing requires an astronomical amount of generated data from XFOIL, a popular aerospace tool used to find the lift and drag coefficients on airfoils. (But I'm digressing.) Cut to the chase: I have a Perl s...

How do I get Java to use my multi-core processor?

I'm using a GZIPInputStream in my program, and I know that the performance would be helped if I could get Java running my program in parallel. In general, is there a command-line option for the standard VM to run on many cores? It's running on just one as it is. Thanks! Edit I'm running plain ol' Java SE 6 update 17 on Windows XP. W...

How many cpus before Erlang faster than single threaded Java

I am currently using java and have read a lot about Erlang on the net and I have 2 big questions: How much slower (if any) will Erlang be over simple Java. I'm assuming here that Java is going to be faster from the shootout benchmarks on the net (Erlang doesn't do that well). i.e. How many more cpus am I going to need to make the Erl...

Optimisation , Compilers and Its Effects

(i) If a Program is optimised for one CPU class (e.g. Multi-Core Core i7) by compiling the Code on the same , then will its performance be at sub-optimal level on other CPUs from older generations (e.g. Pentium 4) ... Optimizing may prove harmful for performance on other CPUs..? (ii)For optimization, compilers m...

Surprising results with .NET multi-theading algorithm

Hi, I've recently wrote a C# console time tabling algorithm that is based on a combination of a genetic algorithm with a few brute force routines thrown in. The initial results were promising but I figured I could improve the performance by splitting the brute force routines up to run in parallel on multi processor architectures. To d...