Find the answer to your Linux question:
Results 1 to 3 of 3
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    On the number of CPUs


    Hi,

    I run a particular task that allows me to set up the number of CPUs. My computer has 8 CPUs. If I tell the task to use 8 CPUs, does this mean that I cannot run any other task until this job is finished?

    *I am using BASH shell
    Last edited by green2016; 03-22-2018 at 11:47 PM.

  2. #2
    Trusted Penguin Irithori's Avatar
    Join Date
    May 2009
    Location
    Munich
    Posts
    4,031
    The kernel will decide which process gets the next cpu timeslices.
    So even if a process runs on all available cores, other processes will still be processed.

    Naturally, if there are multiple purely cpu bound processes, they will individually take longer.
    But still, each process will get resources.
    You must always face the curtain with a bow.

  3. #3
    -->
    Quote Originally Posted by green2016 View Post
    Hi,

    I run a particular task that allows me to set up the number of CPUs. My computer has 8 CPUs. If I tell the task to use 8 CPUs, does this mean that I cannot run any other task until this job is finished?

    *I am using BASH shell
    If you can run a program like computer moniter usually it will tell you. how much of the cpu you are using. And if you can run other programs at the same time.

$spacer_open
$spacer_close

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •