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 9222691
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T03:53:33+00:00 2026-06-18T03:53:33+00:00

I am trying to run my program in more than one core. I have

  • 0

I am trying to run my program in more than one core. I have 12 cores in my desktop and want the computer to use 1,2,3,4,……,11,12 one by one and want to test how the program performs in different number of cores. I tried using -t4 or -t 4 after the executable like.

./a.out -t4 

but I cannot make sure whether its using exactly 4 or not. Can anyone please help me out understand this or point me in right direction.

  • 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-18T03:53:35+00:00Added an answer on June 18, 2026 at 3:53 am

    Your program has to be multi-threaded to use several cores of your machines.

    This means that the actual code of the program has to be aware of threads and use them efficiently.

    You cannot simply ask a program to run on a given number of threads.

    You have to use a thread library such as pthread to spawn threads and distribute work over them.

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

Sidebar

Related Questions

This is more a generic question than a specific one. I'm trying to have
I am trying to make a program which needs scans in more than one
I have a program with more than 100 subroutines and I am trying to
Trying to run my program in FreeBSD OS, I have the following results: $
I have this problem when trying to run hello world program using android SDK.
I am trying run a program from a qmake .pro file which modifies the
I am trying to run a program and SOMETIMES I'm getting this error when
When i am trying to run my program it is giving the following error
I am very new to MPI programming, I am trying to run a program
I'm trying to run the sample program, which comes with Google Data API. I

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.