multicore

Mapping logical processors to physical processors

On a dual quad-core GetProcessAffinityMask (or the dialog from "Set affinity" in taskman.exe) will report eight logical processors. How do I find out which logical processor is on which physical processor? Especially: which logical processors are on the same physical processor? EDIT: If it is not possible to do this programmatically, do...

What is a Warm-Up Cache?

Hello, I am working with some multicore simulatores such as, GEMS or M5. And in all of them there is an option for Warm Up the cache. Can anyone please tell what does that term mean?. ...

Multiprocessor Programming Course Feedback

I am planning to attend a one week course on this subject. I am primarily involved in Java projects and have decent knowledge of C and C++ too. And, I am interested in learning more on concurrent programming and would like to get feedback on this course. Has someone read the book or found these concepts relevant in contemporary programmi...

Dividing workload on several threads

Hello. I was wondering if anyone knows about a good article which describes dividing workload on to several Threads? Preferebly it would be written for C# but it's really the concept I'm after, so it's not an issue if it's written for a different, similar, language. I have a problem where I would have to divide a large amount of comput...

Where to find Paint.NET multithreading white paper?

Like I wrote elsewhere, I seem to be sure that a white paper by Rick Brewster about multithreading used in Paint.NET once existed. I am not able to find any reference to this white paper again however. Does it (still) exist? And if so, where? EDIT: Found out in comments to an unrelated question that Paint.NET is still free, but code is...

What programming language are you using today for multicore platform?

I was reading this blog post http://www.cilk.com/multicore-blog/bid/8097/Don-t-get-caught-with-your-multicore-pants-down and got me asking this question. 4-cores or 8-cores will be a common thing in 12-24 months time and I got a chill realizing that I don't have a answer for that yet. ...

How can I get the CPU core number from within a user-space app (Linux, C)?

Presumably there is a library or simple asm blob that can get me the number of the current CPU that I am executing on. ...

Couple of questions about Amazon EC2

Amazon measures their CPU allotment in terms of virtual cores and EC2 Compute Units. EC2 Compute Units are defined as: The amount of CPU that is allocated to a particular instance is expressed in terms of these EC2 Compute Units. We use several benchmarks and tests to manage the consistency and predictability of the performance from ...

On which operationg system is threaded programming sufficient to utilize multiple cores?

I would like to use my multi-threading programming skills (I got skills), but I realize that that is not enough. My threads may still compete for the same core if the operating system is not aware of the potential. What OS/compiler/library combination can I use on Intel Xeon architecture to thread to the cores? ...

Is there a way to improve multicore / multiprocessor performance of the Java compiler?

My coworker noticed that when javac is compiling it only utilizes a single core. Is there anything like the -j command with the gcc for Java that will allow us to distribute the compiler workload across cores or processors? If not, do you think that this will ever be possible or is there some sort of fundamental restriction as a result o...

Are you concerned about multicore?

This is undeniable: multicore computers are here to stay. So is this: efficient multicore programming is pretty difficult. It's not just a case of understanding pthreads. This is arguable: the 'developer on the street' need concern him/herself with these developments. To what extent are you concerned about having to expand your skil...

Concurrent read access on an int[] array: Is it safe? Is it fast?

On a quad-core machine, I am considering the parallelization of C#/.NET algorithm which involves having multiple threads reading the small int[] array concurrently. So far, it seems to be working rather well, but I am not sure where it is specified that concurrent reads on an array are thread-safe in .NET. Any pointers? Then, I am also ...

Can I force cache coherency on a multicore x86 CPU?

The other week, I wrote a little thread class and a one-way message pipe to allow communication between threads (two pipes per thread, obviously, for bidirectional communication). Everything worked fine on my Athlon 64 X2, but I was wondering if I'd run into any problems if both threads were looking at the same variable and the local ca...

Does the advent of MultiCore architectures affect me as a software developer?

As a software developer dealing mostly with high-level programming languages I'm not sure what I can do to appropriately pay attention to the upcoming omni-presence of multicore computers. I write mostly ordinary and non-demanding applications, nevertheless I think it is important to know if I need to change any programming paradigms or ...

Why don't large programs (such as games) use loads of different threads?

I don't know how commercial games work inside very much, but the open source games I have come across don't seem to be massively into threading. Same goes for most other desktop applications, normally two or three threads seem to be used (eg program logic and GUI updates). Why don't games have many threads? Eg separate threads for physi...

How are interrupts handled by dual processor machines?

I have an idea of how interrupts are handled by a dual core CPU. I was wondering about how interrupt handling is implemented on a board with more than one physical processor. Is any of the interrupt responsibility determined by the physical board's configuration? Each processor must be able to handle some types of interrupts, like di...

Tips of coding java programs in multicore scenario

There seems to be a lot of fuss about multicore and java. While some people say that java support is not good enough, it definitely seems to be an area to look forward to. There seems to be many techniques to improve performance of concurrent programs. Any tips/advices about programming in a multi core scenario is appreciated. ...

How do I utilise all the cores for nmake?

I just got a new quad core computer and noticed that nmake is only using 1 process. I used to use make which had the switch -j4 for launching 4 processes. What is the nmake equivalent? [edit] Based on the information below I have been able to add a command to my qmake project file: QMAKE_CXXFLAGS += /MP Which effectively did it for ...

How to write .NET applications that utilize multi-core processors.

As multi-core processors become more and more popular, I think it would be wise for me to become familiar with how to write code to take advantage of them. I am a .NET developer, and am not sure where to begin (seriously, I have no clue where to start). Any suggestions? ...

Can pure functions read global state?

Please note: by a "pure" function, I don't mean "pure virtual" I'm referring to this If a function "reads" some global state, does that automatically render it impure? or does it depend on other factors? If it automatically renders it impure, please explain why. If it depends on other factors, please explain what are they. ...