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.
- 12-28-2011 #1Just 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
- 12-31-2011 #2Linux Guru
- Join Date
- Apr 2009
- Location
- I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
- Posts
- 10,148
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!


Reply With Quote
