|
Boost Users : |
From: Hal Vaughan (hal_at_[hidden])
Date: 2008-03-17 13:10:39
Peter Dimov wrote:
> Hal Vaughan:
>
>> I'm beginning to see that, mainly because, as I read the posts, I'm
>> realizing that there are a lot of low-level issues that I hadn't
>> expected. I'm used to Perl or Java where all that is taken care of.
>
> You should be able to replicate the results of your test in Java and even
> Perl using processes. The issues aren't language-dependent.
I get different results in Perl. For example if I do two threads, each with
a loop printing out the numbers 1-100 (or even 1,000) in Perl, the output
is interspersed. Thread 1 prints one or more, Thread 2 prints one or more
and so on. If I do it in C++, Thread 1 prints them all, then Thread 2
prints them all.
That's what I mean by it being different at this level. The Perl
interpreter is handling switching between the different Perl threads.
Hal
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net