multicore

Web server capacity planning: more cores versus more memory

We have an ASP.NET project (40 or so Web forms, 50 tables, pretty standard IO stuff with care taken to minimize when possible) that will soon need to be deployed. There will be about 100 concurrent users on the system, but only about 20 at any one time will be pounding on it it. We'll be deploying it on Windows Server 2008, 32-bit initia...

C++ Parallelization Libraries: OpenMP vs. Thread Building Blocks

Hi, I'm going to retrofit my custom graphics engine so that it takes advantage of multicore CPUs. More exactly, I am looking for a library to parallelize loops. It seems to me that both OpenMP and Intel's Thread Building Blocks are very well suited for the job. Also, both are supported by Visual Studio's C++ compiler and most other po...

InterlockedIncrement usage

While reading about the function InterlockedIncrement I saw the remark that the variable passed must be aligned on a 32-bit boundary. Normally I have seen the code which uses the InterlockedIncrement like this: class A { public: A(); void f(); private: volatile long m_count; }; A::A() : m_count(0) { } void A::f() { ::Inte...

Have you used Multi-Core for speed? What did you do and was it worth the effort?

So I did not look at the right location before posting this.. I was looking at the result of the computer language benchmark game: <http://shootout.alioth.debian.org/u32q/index.php&gt; And it seems that most of the fastest solutions are still C/C++ using just a single core of the 4 core machine that runs the tests. I was wondering i...

Does ASP.NET by default take advantage of multicore processor ?

Or I have to configure IIS specifically for this ? Do I have to use Web garden to take advantage of multiple cores ? ...

Is there a way to see how much CPU usage per core a process is using?

I know in perfmon you can see how much each core is utilized, and how much total CPU a particular process is using. However I can't seem to find a way to see how much CPU a process is using broken down by cores. Is there a built-in way to see this information? Is there a programmatic way to see this? (C# preferred) Am I demonstrati...

What is the difference between multicore programming in Erlang and other language?

I read Joe Armstrong's 'Programming Erlang', and the 'n times faster in n core machine' theory. The efficient way to multicore programming in Erlang is to use lots of processes (threads). I'm a C++ programmer, so I am curious about the difference between making lots of threads in C++ and making lots of processes in Erlang. I understand ...

How can I implement an algorithm for multicore in Java?

Modern computers have more and more cores. We want to change our current linear algorithm to use these cores. A splitting of any algorithm to use different threads only makes sense if there is a free processor. Are there any good libraries that can help to parallelize some steps if there are free processors? I will give some examples....

can one make concurrent scalable reliable programs in C as in erlang?

Hi, a theoretical question. After reading Armstrongs 'programming erlang' book I was wondering the following: It will take some time to learn Erlang. Let alone master it. It really is fundamentally different in a lot of respects. So my question: Is it possible to write 'like erlang' or with some 'erlang like framework', which given tha...

How to control which core a process runs on?

I can understand how one can write a program that uses multiple processes or threads: fork() a new process and use IPC, or create multiple threads and use those sorts of communication mechanisms. I also understand context switching. That is, with only once CPU, the operating system schedules time for each process (and there are tons of ...

D2010 Beta: The Perfect Way to support Multi-Core

In my previous question about the expected features in the new D2010 one of the highest rated answers was 'Multi-Core Support'. Well, as we all know Delphi support thread programming since D2 (IIRC) and is used heavily in some areas. More specifically which is, in your opinion, the perfect way to support parallel programming in Delphi?...

Simultaneous Or Sequential writes-- Does it matter in terms of speed?

Simultaneous Or Sequential write operation-- Does it matter in terms of speed? With multicore processor, does it make sense to parallelize all the file write operation using multi thread, just to get a boost of speed? Of course, all those write operations are independent. ...

Parallel execution of shell processes

Is there a tool available to execute several process in parallel in a Windows batch file? I have found some interesting tools for Linux (parallel and PPSS), however, I would need a tool for Windows platforms. Bonus: It would be great if the tool also allowed to distribute processes in an easy way among several machines, running the pro...

multi-CPU, multi-core and hyper-thread

Could anyone recommend me some documents to illustrate their differences please? I am always confused about the differents between multi-CPU, multi-core and hyper-thread, and pros/cons of each architecture in different scenarios. EDIT: here is my current understanding after learning online and learning from others' comments, could anyon...

Negative Speedup on Multithreading my Program

On my laptop with Intel Pentium dual-core processor T2370 (Acer Extensa) I ran a simple multithreading speedup test. I am using Linux. The code is pasted below. While I was expecting a speedup of 2-3 times, I was surprised to see a slowdown by a factor of 2. I tried the same with gcc optimization levels -O0 ... -O3, but everytime I got t...

What is LLVM and How is replacing Python VM with LLVM increasing speeds 5x?

Google is sponsoring an Open Source project to increase the speed of Python by 5x. Unladen-Swallow seems to have a good project plan Why is concurrency such a hard problem? Is LLVM going to solve the concurrency problem? Are there solutions other than Multi-core for Hardware advancement? ...

Is IBM's Cell multi-core?

Is it correct to say that IBM's cell is a multi-core architecture? I have to give a presentation on "Multi-core architectures" and was wondering if I could focus on the Cell processor. ...

Multiprocessor and Performance

Hi! I'm facing a really strange problem with a .Net service. I developed a multithreaded x64 windows service. I tested this service in a x64 server with 8 cores. The performance was great! Now I moved the service to a production server (x64 - 32 cores). During the tests I found out the performance is, at least, 10 times worst than i...

Any way to make this working dual core in C#?

Hi, I got a piece of code that loops through the array and looks for the similar and same strings in it - marking it whether it's unique or not. loop X array for I ( loop X array for Y ( If X is prefix of Y do. else if x is same length as Y and it's prefix do something. ) Here is the code to finilize everything for I and c...

Multiprocessing or Multithreading?

I'm making a program for running simulations in Python, with a wxPython interface. In the program, you can create a simulation, and the program renders (=calculates) it for you. Rendering can be very time-consuming sometimes. When the user starts a simulation, and defines an initial state, I want the program to render the simulation con...