Skip navigation.
Home
The QNX Community Portal

View topic - Is there any API that returns the thread state?

Is there any API that returns the thread state?

Discussions, suggestions, requests about this website.

Is there any API that returns the thread state?

Postby Aparna » Mon Jan 31, 2011 9:09 am

I want to know if there is any POSIX API that takes thread id as input and returns the thread state for OMThread and OMOSThread.
Aparna
New Member
 
Posts: 2
Joined: Mon Jan 31, 2011 9:07 am

RE: Is there any API that returns the thread state?

Postby lovelyp » Thu Apr 07, 2011 9:43 am

use the pidin command to see the state of the thread.

pidin -p <process_id> -f J displays the thread state of the specified process_id. If no POSIX API is there use this in system call
lovelyp
Active Member
 
Posts: 23
Joined: Sat Jan 30, 2010 9:14 am

RE: Is there any API that returns the thread state?

Postby maschoen » Sat Apr 09, 2011 4:39 am

What is OMThread and OMOSThread?
maschoen
QNX Master
 
Posts: 2640
Joined: Wed Jun 25, 2003 5:18 pm


Return to OpenQNX Site

Who is online

Users browsing this forum: No registered users and 1 guest