Sign up ×
Programmers Stack Exchange is a question and answer site for professional programmers interested in conceptual questions about software development. It's 100% free.

I am interested in multicore programming at the kernel level. I expect this affects many areas and is probably different for each architecture. What are some must read sections of the kernel? If I wanted to compare and contrast code for an Intel I7 and an ARM Cortex-A9 MPCore where would I find the differences?

share|improve this question

closed as off-topic by durron597, Snowman, GlenH7, MichaelT, gnat May 23 at 5:47

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "Questions seeking career or education advice are off topic on Programmers. They are only meaningful to the asker and do not generate lasting value for the broader programming community. Furthermore, in most cases, any answer is going to be a subjective opinion that may not take into account all the nuances of a (your) particular circumstance." – durron597, Snowman, GlenH7, MichaelT, gnat
If this question can be reworded to fit the rules in the help center, please edit the question.

It would be hard for you if you cannot read the linux source code... – apeirogon Oct 9 '12 at 21:54
I'll cobble together a prototype answer. It won't affect the bounty or accepting an answer, so if you care about points, there are a lot available: the bounty, answer acceptance, and upvotes from me and others. I think I understand what I read in the source code, and perhaps that is best, stickiest way to learn what I want. However, there are many true experts on Stack Exchange and if I had one in the next cubical or office, I would ask that person the same question. You may be an expert too, and I certainly appreciate your earlier answer, but I am looking for more detail. – DeveloperDon Oct 9 '12 at 23:50
Also, I hope this question is of use to the community. It seems like we have a multicore future, so learning more about them probably has value to many Stack Exchange Programmer participants. – DeveloperDon Oct 9 '12 at 23:52

3 Answers 3

There is nothing special about Multicore Programming in Linux. You have to understand the whole kernel. Instead of asking specific questions, go ahead and download the Linux Source code from and go through the README file and the source code structure. (Your question about intel and arm process is answered in README). Start reading the source code along with a good linux kernel book.

share|improve this answer

All programming in the kernel is multi-core programming (in the sense that it has to be capable of running on multiple cores). So there's nothing specific to that which you don't already do for general kernel coding.

Areas of kernel programming relevant to multi-core systems are locking, scheduling, and memory access (NUMA if you're on that type of machine).

Here's a few good places to start:

share|improve this answer
Let's assume I want to read code related to NUMA or CCNUMA. Thanks for the links, I have seen some of these, and the O'Reilly Linux Driver book they look like they will be very useful. – DeveloperDon Oct 10 '12 at 0:03
up vote 3 down vote accepted

To understand the multicore operation support provided by processors and used by operating systems, diving into the code may not be the ideal method. It may be important to first understand what it does to get a framework on which to hang the many pieces that relate to how it does it. Specification deals with the problem domain, code deals with the solution domain, and in most systems there is a design process that does an object oriented or functional decomposition to relate the two.

One way to approach this question is to start with the theory of operation documentation for the architecture of interest, greping for multicore or multiprocessor, two concepts that have close affinity although there are some distinctions related to implementation, particularly on the hardware side. For the Intel architecture I found some interesting information from Volume 2, Part 2: MP Coherence and Synchronization page 2:507 of the Intel® Itanium® Architecture Software Developer’s Manual

From this material, some of the following code becomes much more intelligible.

Certainly there is no substitute for reading the code, but there is also no substitute for reading the vendors manuals, particularly when working with one of the most complex devices on the planet.

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.