Why my multi-threaded programs are not using all processing capacity available

I have been trying to write small multi-threaded programs, in Ruby, Python and Go, and I think they are not taking advantage of my dual core processor.
I've divided the problem so that each thread works completely independent (no communication, no locks, no shared memory...), but it was taken more time than the non-concurrent version.
Monitoring with top, I noticed that the version in Python uses about 120% of CPU, but in Ruby and Go it get stuck in 100%.
I've tried to reduce the threads to loops that only add numbers, something very simple, just to use as much processor as possible, and it did not changed anything.
I'm using Ubuntu 11.10 with a dual core processor, there is a lot of free memory and only a few other low CPU process.

Why my programs are not using both cores in my computer?

Add Done

    Please sign in to answer question.

    0
    Caio Tiago Oliveira de Sousa

    http://umamao.com/questions/Why-my-multi-thr...rs/4f5d23bfb6f2395fc401dd0b

    Sign in to leave a comment.

    Search results:
    Why my multi-threaded programs are not using all processing ...

    umamao.com/questions/Why-my-multi-threaded-programs-are-not-using-all-processing...

    Why my multi-threaded programs are not using all processing capacity available

    .NET Reference Guide | Thinking About Multi-Threaded Programs ...

    https://www.informit.com/guides/content.aspx?g=dotnet&seqNum=742

    Thinking About Multi-Threaded Programs. Last updated May 1 ... All indications are that the amount of available RAM and the size of on-chip ... Not all applications can benefit from ...

    .NET Reference Guide | Thread Safe Collections | InformIT

    https://www.informit.com/guides/content.aspx?g=dotnet&seqNum=753

    ... to write many types of multi-threaded programs. ... own thread-safe queue using locks. Stacks, too, are very commonly used in multi-threaded programs, and ... safe carries with it all the ...

    multithreading - How to ensure Java threads run on different cores ...

    stackoverflow.com/questions/1896065/how-to-ensure-java-threads-run-on-different-cores

    ... int w = 0; w<= capacity ... day, while processing some more data, it just stopped using both cores. after not ... Why is my multithreaded Java program not maxing out all my cores on my ...

    Qt multi-core capability | Qt DevNet forums | Qt Developer Network

    qt-project.org/forums/viewthread/6866

    I don’t see why Qt ... they always use all my cores to their full capacity when numbercrunching. And that is all done using ... possible to write multi-threaded programs without using ...

    Search results provided by Bing | Keep searching on Bing / Google