Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8013225
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T19:34:58+00:00 2026-06-04T19:34:58+00:00

I am running same C++ implementation in two different computation environment where the first

  • 0

I am running same C++ implementation in two different computation environment where the first one is Xeon 2.3 GHz with 48 Gb memory and the second one is Core2 Duo 2.53 GHz with 3 Gb memory. For the compilation, I have used g++ with similar options. I should note that first system is 64 bit Red Hat, second one is 32 bit Ubuntu. Additionally, g++ versions are different, in the first system version 4.1.2 is installed, in the second system version 4.6.1 is installed.

When I run the code, both systems return exactly same solution. For each system, time results are as follows.

System-1:
real 0m19.623s
user 2m13.588s
sys 0m3.118s

System-2:
real 0m11.229s
user 0m11.785s
sys 0m1.496s

I have 2 questions.

  1. Why System-1 (better computation environment) runs this code inferior than System-2?
  2. For System-1, the difference between the real time and the user time is considerable. Why such situation occurs?
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T19:34:59+00:00Added an answer on June 4, 2026 at 7:34 pm

    The problem is solved. I am using a shared library in my application. I realize that this shared library works multi-threaded in its default settings. I set it to single-threaded then it starts to work fine in both systems.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have two scripts running on the same page, one is the jQuery.hSlides.js script
If i had two different application running under the same solution but using different
I have 2 machines running same workers. One machine shoud be primary as it
multiple webapp running on same tomcat using same jvm. sometime, one webapp that have
Why these two pieces of codes, running on same conditions, does not have difference
I have two websites running on the same Windows 2008r2 64bit server, SQL Server
I have a WCF service (the same one) running on multiple servers, and I'd
I've got two services running in the same process, hosting the same classes, on
I have a tcp client - server implementation running in the same program, on
In my application I am running the same winform in different contexts to control

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.