Re: Do you use a garbage collector (java vs c++ difference in "new")

Discussion in 'Java' started by Juha Nieminen, Apr 11, 2008.

  1. Razii wrote:
    > On Fri, 11 Apr 2008 03:35:27 +0300, Juha Nieminen
    > <> wrote:
    >
    >> Razii wrote:
    >>> In C++, each "new" allocation request
    >>> will be sent to the operating system, which is slow.

    >> That's blatantly false.

    >
    > Well, my friend, I have proven you wrong. Razi has been victorious
    > once again :)


    Uh? I said that the claim that each "new" performs an OS call is
    blatantly false. How does your program prove that wrong?

    Your C++ program does *not* perform a system call for each executed
    new, and I can prove that.
    Juha Nieminen, Apr 11, 2008
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Arne Vajhøj
    Replies:
    12
    Views:
    798
  2. Ian Collins
    Replies:
    0
    Views:
    569
    Ian Collins
    Apr 11, 2008
  3. Roedy Green
    Replies:
    14
    Views:
    1,197
    Mirek Fidler
    Apr 14, 2008
  4. asterisc
    Replies:
    6
    Views:
    496
    Mark Space
    Apr 12, 2008
  5. Ian Collins
    Replies:
    2
    Views:
    538
    Matthias Buelow
    Apr 11, 2008
Loading...

Share This Page