This is a discussion on Single Threaded Application and ps -o thread command output within the AIX Operating System forums, part of the Unix Operating Systems category; --> Guys, I have Two instances of a single threaded application running on my AIX 5L server . I have ...
| |||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| Guys, I have Two instances of a single threaded application running on my AIX 5L server . I have varified that it is a single threaded application using svmon -p command. Now the situation is that when i run " ps -o THREAD -u commuser " then according to ps command manuals BND column should return either 0 or 1 ( as it is a single threaded application so either it should run on processor 0 or 1 ) but in my case BND column is not shown ( only - is showing in BND column ; which means that all application threads are not running on same processor ) How come it is possible that a single threaded application' thread is logically divided to be able to run on two processors ( rather than running on same processor )??? Please advice !! Am i wrong in my understanding??? Also please note that whenever |
| ||||
| Your thread can run on any proc you have on your system .. you have something called processor affinity which tries to keep the threads on the same proc as this aides perf in the long run, but once your thread becomes runable the scheduler will work out what threads are runnable and already scheduled to run on which run queue and at what priority and then it will make a decision which run queue to place your thread ... this may or may not be the same cpu run queue as before. So, unless you actually bind that proc to a processor (bindprocessor subrouting / command) then its free to go to any proc .. HTH Mark Taylor |
| Thread Tools | |
| Display Modes | |
|
|