Find the answer to your Linux question:
Results 1 to 2 of 2
Hi guys, excuse me for my bad english. ) my OS: ubuntu 2 question: 1.How I can assign a process to one core? 2. How I can calculate runtime for ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Dec 2011
    Posts
    1

    assign one process to one core and how calculate runtime for process


    Hi guys,

    excuse me for my bad english.
    )
    my OS: ubuntu
    2 question:
    1.How I can assign a process to one core?

    2. How I can calculate runtime for a process, but my concern is other process interrupt CPU and i can't calculate real runtime.

    thanks

  2. #2
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, in Chicago, or in a galaxy far, far away.
    Posts
    11,574
    When a process is suspended because of scheduling, when its next time slice comes up, it will be reassigned to the next available core; however, you can set the affinity of a process to a specific CPU or core. Here is a link with information that may help: Linux Setting processor affinity for a certain task or process
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

Posting Permissions

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