Thanks for looking at it.

Possibility 1 is out of the question, it's a C2D E7300 - or it's damn good at pretending to be one. :)

Possibility 3 is also out, I think. I tried to replace the function that talks to R with one that simply calls one of my dumb C Mandelbrot renderers: the 2 threaded version finished in half time, confirming that the CPU is capable of running two processes in a truly parallel way. This also suggests that it is not my implementation that's at fault.

This leaves possibility 2, which seems to suggest that something fishy is going on with R when it comes to multithreading. Maybe it's as you say that there are two R interpreter instances, but only one backend?

I'll try to isolate the issue. Thanks again.

In reply to Re^6: Using threads to run multiple external processes at the same time by kikuchiyo
in thread Using threads to run multiple external processes at the same time by Anonymous Monk

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.