General :: Get List Of Thread Of Running Process Using C Api (in That Code)?
Jan 29, 2010
In short our required is that we are creating a share library which can be loaded by a process and that share library analysis the process which load it. Since share library is in address space of the process so I need to find out how many threads created by the process and what is status of their stack trace etc.
So I am looking for a way to get list of threads in running process.
View 1 Replies
ADVERTISEMENT
Jan 27, 2010
How to get list of threads of a process using C code in Linux?
View 6 Replies
View Related
Feb 5, 2011
how to list the currently running processes via code a shell script. FYI i now about the top method in the terminal but i need a way to have it via a shell script.
View 4 Replies
View Related
Feb 12, 2010
How to stop a thread by using commands? Other threads in that process shouldn't disturbed. Is it possible to do the same?
View 2 Replies
View Related
Mar 25, 2011
Where can I get the source code of quick thread?
View 1 Replies
View Related
Jul 30, 2009
I am troubleshooting something and I got this problem.
If I do "pstree -p"
It shows,
Code:
[code]....
However, it does NOT show up in "ps -elf"
Code:
ps -elf | grep soffi
0 S whho 7734 1 0 80 0 - 36435 - 11:14 pts/2 00:00:03 /usr/lib/openoffice/program/soffice.bin -splash-pipe=5
0 S whho 7833 7759 0 80 0 - 751 - 11:21 pts/3 00:00:00 grep soffi
I was wondering if 7735, 7736, 7737, 7743 were really processes. Then I checked /proc, I could cd to /proc/7735, /proc/7736, etc, but I could not ls them out. I looked at the man page of "pstree", it says,
Code:
Child threads of a process are found under the parent process and are shown with the process name in curly braces, e.g.
icecast2---13*[{icecast2}]
So, what does all this mean? Does it mean that 7735, 7736, 7737, 7743 are just threads but not processes? If so, why could I cd to /proc/<id> but not see them in "ps -elf".
View 10 Replies
View Related
Feb 1, 2010
these are the functions I am using for creating threads..
#include "mythread.h"
/** Global Data **/
tcbList_t *readyList = NULL; /* Ready list */
tcb_t *runningTCB; /* Currently running thread */
tcb_t mainTCB; /* Starting threads's TCB */
[code]....
The function endThread() currently simply ends the entire program, not just the terminating thread. I need to modify the function endThread() so that it will place the terminating thread on the zombie list and switch to the next ready thread if the ready list is not empty. If the ready list is empty then endThread() should switch back to the main thread (the state of the main thread was saved in "mainTCB" by initiate())... and, in createThread() space is malloc'd for the thread's TCB and stack. This space should be freed...
View 1 Replies
View Related
Nov 18, 2009
is there any tool can show the thread/process schedule information? i would like to know when the thread/process wakeup, and when it was suspend? it includes kernel and user space. With this information, i can know the thread/process task schedule, and calculate the MIPs.Another, do you know whether LTT support User space thread trace?
View 2 Replies
View Related
Mar 24, 2011
I want to know, is there any way to prevent the multi-thread process from crashing if some errors (say, segmentation faults) occur in one of its child threads? I've found pthread_sigmask() function, but that does not seem to work:
Code:
#include <stdio.h>
#include <unistd.h>
[code]...
View 3 Replies
View Related
Sep 1, 2011
When I run ps fax|grep grep it shows one process like:
How is that possible?
View 1 Replies
View Related
Apr 2, 2010
I'm trying to get this rather troublesome (and poorly made, I might add) game to work correctly, and right now it has frozen to a black screen with a frozen cursor. I can't figure out how to shutdown X, but while this game is frozen as it is, I might as well figure out what the process status SL+ means. If anyone has a link to a list of process status codes and their meanings
View 1 Replies
View Related
Jan 14, 2011
This is a client server issue where the server creates a new thread for listening to a new client, now when the thread starts execution and during its execution the server needs to pass it an object of some X class, how's that to be done?
View 4 Replies
View Related
Apr 30, 2010
I have created a simple download schedular with source-code give below :
---------------------record_strokes.sh-------------------
touch /home/student/packs/lynx/logfile
lynx -cmd_log /home/student/packs/lynx/logfile
[code]....
View 1 Replies
View Related
Jan 20, 2010
I am new to Linux and have asked several Linux enthusiasts about my problem, however I am wondering at this point if it is a lost cause, since many have been unable to help me solve my problem.
I am unable to run a certain C code which uses the obsolete compilation method 'imake'. I would kindly like to ask if there is any way that I can run this code. Am I required to install anything? Or do I have to change the code in some way so that it could run on a more updated compilation method?
View 1 Replies
View Related
Mar 13, 2009
I installed mysqld with yum then yum quit working with this error:http://yum.baseurl.org/ticket/70 when mysqld is stopped yum works again. what does a running instance of mysqld have in common with a python yum package manager?
rpm -qa rpm* python* yum* mysql* | sort
mysql-5.0.45-7.el5
mysql-devel-5.0.45-7.el5
mysql-server-5.0.45-7.el5
[Code]...
View 3 Replies
View Related
Nov 10, 2010
Is it possible, using ps, to determine where a process is running from? I have two applications, both are identical and running in parallel directories, such as /app1/start.sh and /app2/start.sh. If I run ps -ef then I'm unable to tell the difference between the two
Using ps (or alternative), how can I tell that PID 123 belongs to app1?
View 3 Replies
View Related
Feb 10, 2011
Is there a way for me to tell cron to run an app BUT not run it if a process exist already?
View 5 Replies
View Related
Feb 23, 2011
Is there some way to see only the process running in the background?
View 4 Replies
View Related
Apr 7, 2011
How can i get the notification of process which are currently running?
We wrote one script which is being fired for every minute, instead of that is there any to trigger the event from linux core implicitly if there is any change in my process(pid)?
View 3 Replies
View Related
Jan 14, 2011
Is there any way to run a long process in background so that it still remain in running state even if the user logout the system.
View 12 Replies
View Related
Oct 7, 2010
I'm running GNU Emacs 23.1.1 on "Ubuntu 10.04.1 LTS" and any search I perform using the built-in M-x rgrep on the standard Linux kernel source code (vanilla) ends prematurely with the following error printed to the emacs echo area:Grep exited abnormally with code 123.I have been seeing it for a while on Redhat systems as well, and with other (large) code bases.
View 2 Replies
View Related
Dec 25, 2010
I am going to use "pthread_setaffinity_np" to bind a thread to a specific core. My application has two threads. I have used mutex to assign a specific id to each thread and then bind that thread to a core different from another core. but it seems that the os assigns both thread to one core.What should I do to bind each thread to a specific core?
View 4 Replies
View Related
Mar 10, 2011
How do you move a running process to the background? For example, type the command sleep 60 on the command line and try moving that process to the background.
View 1 Replies
View Related
Apr 28, 2011
Can we change cpu utilization if its have very high in running mode without stop that process.
View 1 Replies
View Related
Dec 22, 2009
Is it possible to rename a process that is currentley running i.e. from "batch.sh" to "donotkill" etc
View 4 Replies
View Related
Apr 17, 2011
Can anyone tell me that how to get information about stack, allocated by kernel to a running process? for this ,is there any api function,any system call is available in ubuntu 8.04 ?
View 2 Replies
View Related
Jun 13, 2011
Is there a way in zabbix to monitor whether a process is running( up/ down)
i am using zabbix 1.8.4
View 2 Replies
View Related
Apr 2, 2011
i know that there is already a command for it but it comes out with a lot of letters that makes it hard to find the services that are runningi'm talking about services like DNS, APACHE, DHCP, SAMBA, SSH etcis there a command that will list these services and related services that are running instead of showing a bunch of jumbled and lettered mess thats hard to comprehend
View 6 Replies
View Related
Aug 12, 2011
Possible Duplicate: Finding the process that is using a certain port in Linux I'm using Ubuntu Linux 11.04. How do I write a shell script expression that will find the process running on port 4444 and then kill the process?
View 4 Replies
View Related
Aug 18, 2011
How do I know which shared libraries are loaded by an already running process?
View 2 Replies
View Related