Unix Technical Forum

Single Threaded Application and ps -o thread command output

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 ...


Go Back   Unix Technical Forum > Unix Operating Systems > AIX Operating System

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-05-2008, 10:20 AM
Polani
 
Posts: n/a
Default Single Threaded Application and ps -o thread command output

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

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 01-05-2008, 10:20 AM
Mark Taylor
 
Posts: n/a
Default Re: Single Threaded Application and ps -o thread command output

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

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 07:42 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com