General :: Stop Thread By Using Commands - Process Shouldn't Disturbed

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


Red Hat / Fedora :: Command To Stop That File/process Or Is It Just Kill The Process To Stop The Process?

Nov 11, 2010

I've some file with .sh extensions that runs some softwares.Now,how do I stop running that filesI know we run the command ./ to start the apache.Is there any command to stop that file/process or is it just kill the process to stop the process

View 2 Replies View Related

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 View Related

General :: Difference Between Child THREAD And Child PROCESS?

Jul 30, 2009

I am troubleshooting something and I got this problem.

If I do "pstree -p"

It shows,



However, it does NOT show up in "ps -elf"


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,


Child threads of a process are found under the parent process and are shown with the process name in curly braces, e.g.


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

Programming :: Get List Of Thread In Running Process?

Jan 27, 2010

How to get list of threads of a process using C code in Linux?

View 6 Replies View Related

Software :: Read Process/thread Schedule Information?

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

Programming :: Prevent Process Crashing On Thread Crash?

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:

#include <stdio.h>
#include <unistd.h>


View 3 Replies View Related

General :: Testing - Stop OS From Allocating More Memory To A Process

Dec 2, 2010

I want to test that a process properly kills itself and restarts when it can't allocate needed memory. One idea I had was to start other memory-consuming processes and hope that OOM killer kills the process being tested, but 1) this isn't quite the same; 2) it may kill other processes instead; 3) since this is an embedded system, I don't have any programs available except for the system under test and BusyBox.Is there a more direct way to ensure that Linux won't allocate memory to a process?

View 1 Replies View Related

General :: Process Billions Of Small Files Using Bash Shell Commands With Limited Memory?

May 26, 2010

I need to process billions of small files using bash shell commands with limited memory size (256MB). If any of those files contain certain "keywords", the file will be removed. I tried with command:

find . -type f -exec grep -i -l -H "keyword" '{}' + | xargs rm -rf

where all files are located within the current directory. But the command above failed in "out of memory".

View 1 Replies View Related

General :: How To Schedule Job Using Cron That Shouldn't Run Between Working Hrs?

Aug 12, 2010

How to schedule a job using cron that shouldn't run between working hrs 9am-5pm, while run in non working hrs every hour, every day of the month, month & week.I tried the following way, not sure I can use logical not operator(!).

View 3 Replies View Related

Programming :: How To Bind Thread To Specific Thread In Multithread Application?

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

General :: Possible To Enforce A Certain Exit Code When Using "kill" To Stop A Process?

Feb 9, 2011

Is it possible to enforce a certain exit code when using "kill" to stop a process?

View 2 Replies View Related

Ubuntu Installation :: Can't Stop Boot Process / What To Do?

Mar 15, 2011

I have installed kernel 2.6.35-23-generic. Everything works fine, even better than 2.6.32. But i have one problem. Every time i select kernel 2.6.35-23-generic
in grub menu i get some error message, than disappers and boot process continue normally. And everything works fine. But i don't know what this message is. I checked dmesg, boot.log, CTRL-S doesn't work to hold the error message - this error is not logged anywhere.

So, what can i do?

View 1 Replies View Related

Software :: Wait For One Process To Stop Before Starting Another?

Jul 13, 2011

I have a certain process (or processes) and I want to wait for them to finish before launching another one. Do I have to make a while loop checking the process for this task or is there a ready command for it?

View 3 Replies View Related

Ubuntu Servers :: Update Process (and I) Can't Stop Mysql?

Mar 10, 2010

I'm running an update, and get this:

The following packages will be upgraded:
apache2 apache2-doc apache2-mpm-prefork apache2-utils apache2.2-common libcupsys2 libmysqlclient15-dev linux-libc-dev mysql-server
mysql-server-5.0 php5-imap sudo
12 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
5 not fully installed or removed.


View 1 Replies View Related

OpenSUSE Install :: 11.2 On RAID 0 Installation - Process Stop At 1% On Operating With HDD

Feb 27, 2010

I'll have a Sony VAIO AR290 with 2 HDD, earlier I'll have a Windows XP and SUSE and RAID was turned off. Now I turn on RAID in STRIPE mode for better productivity, Windows 7 installation was successful, It creates MBR partition (100 M and C: HDD. During SUSE installation(I've chose all parameters- swap and partition) installation process stop at 1% on "operating with HDD" and my VAIO dont answer on any key pressed (alt ctr del, ctr c, esc) and I'll should to turn it power off. During surfing web, I'll find some solutions to solve it by creating root partition but It hasn't any results.

View 7 Replies View Related

Ubuntu :: Machine Will Come To A Complete Stop About Half Way Into The Boot Process

Aug 11, 2010

I'm having small boot issue with my present Linux box, which is presently running Ubuntu 8.04 LTS. When booting from a Live CD, Ubuntu 9.xx+ or any other linux variant I have, the machine will come to a complete stop about half way into the boot process. I think this may have something to do with the WiFi card that I have installed. Are there any suggestions that could help me remedy this problem short of removing the card itself?

View 9 Replies View Related

Ubuntu Servers :: How To Use Start-stop-daemon To Execute Process

Sep 27, 2010

I've just installed subversion.I need to create a script /etc/init.d/svnserve that will start at boot time.I want to use start-stop-daemon --start so I can track my process and eventually kill it using start-stop-daemon --stop.My problem is that I can't get it to work and the documentation shows no exemple.

I've replaced $DAEMON by the whole line: svnserve -d -R -r $REPO_ROOT and got -d is not an option.I'm not quite sure what to do at that point. If someone has some experience with start-stop-daemon it would be great.

View 2 Replies View Related

Ubuntu :: GEdit Process Won't Automatically Stop When Window Is Closed?

Jan 24, 2011

I recently upgraded to Ubuntu version 10.10 64-bit and since then closing GEdit won't stop the process automatically when the window is closed and I have to kill it manually. I didn't have this problem with version 10.04 (also 64-bit) and I didn't change any settings after the upgrade.

View 2 Replies View Related

Programming :: Stop Reading Process Without Be Hanged At The Code In Python?

Dec 11, 2010

I have a Python program looks like this one :

Code: import os
import time
process = os.popen("top").readlines()


View 2 Replies View Related

Fedora :: Ushare Configuration - Last Line Stop Process In The Terminal Via Ctrl+C

May 30, 2009

I just installed ushare on Fedora 10 (yum install ushare is all it took to do), and followed the guidance then to configure sharing for an Xbox 360, [URL] the code below. Notice the last line...due to stopping process in the terminal via Ctrl+C. It appears to me, based on this ending UPNP sharing, that the first line will need to be run each time want to turn on sharing, right? I thought this would simply configure ushare sharing one time, and possibly intiate some sort of file sharing service on each boot, but this appears not to be the case. If I am right, does anyone know how I can develop a script to run at boot to allow ushare to open sharing and keep it open?


View 3 Replies View Related

Fedora :: Init: RcS Post-stop Process (1420) Terminated With Status 139?

Nov 30, 2010

Can't seem to get past this error Doing a google search resulted with no good answers that pertained to this issue. Not sure what's halting the system from starting up, but it just sits and hangs at this forever. Only able to view the error when booting into single user mode - normal boot hangs after "enabling /etc/fstab swaps: [OK]"

View 3 Replies View Related

Ubuntu :: Cannot Kill Sshd Process And Stop Ssh Server From Automaticall Starting?

Dec 10, 2010

I'm running Ubuntu 10.10. I recently installed the open ssh server so that can sftp stuff. However, I do not want the server to always be on, only when I manually start So, I did an 'update-rc.d -f ssh remove'and now I don't see any startup scripts in the rcx.d directories any more.However, when I do a 'ps ax', there is always a '/usr/sbin/sshd' process running. I try to kill it but it keeps restarting under a different process ID.How do I disable sshd?

View 3 Replies View Related

Ubuntu :: Accessories > Settings > Appearance Process Doesn't Seem To Stop Even After Close It

Jan 30, 2011

i have a habit of frequently changing my desktop themes in gnome desktop. off late i found that whenever i close the appearance settings window, the process diesnt seem to stop and it becomes a runaway process, increasing fan speed in my laptop and ofcourse the temp that shoots beyond 70, every time i change the theme i have to issue top command in terminal, identify the gnome-appearance process id and kill it. the instant i kill it, temp drops down to 32 / 32....

View 1 Replies View Related

Ubuntu :: Shouldn't A Notice Appear When Updates Are Available?

Jan 6, 2011

I always manually check Update Manager and there are updates, but I never received any kind of notice indicating such. I thought some sort of popup or notice was supposed to appear in the panel or something to alert me that updates are available? Am I mistaken? Is there a setting I need to activate be alerted that updates are available?

View 9 Replies View Related

Security :: Sudo Asking For Password When It Shouldn't?

May 9, 2011

I have a RHEL 5.5 system set up with two users in the sudoers file to run certain commands without a password prompt.I do not have "Defaults requiretty" in the sudoers file.However, for both users, when I issue: sudo -l, it prompts for a password and logs in /var/log/secure:sudo: userx: no tty present and no askpass program specified

View 2 Replies View Related

Fedora Installation :: Shouldn't The Updater Have Deleted F10?

Dec 10, 2009

I have Fedora 10 and I'd been holding out on updating to 11 and now 12 is out. It popped up asking me to update so I decided to finally update. When I come back to it, it said /boot was running low on memory and that I should delete an old kernel to free up space. Well shouldn't the updater have deleted fedora 10? Sorry I'm new to all this linux stuff. What should I do now?

View 2 Replies View Related

OpenSUSE :: Disable Blueman On KDE - Shouldn't Take Over The KDE's Bluedevil

Apr 13, 2011

I have installed Blueman. But I want to disable it on KDE startup so that whenever I turn on my Bluetooth, blueman shouldn't take over the KDE's Bluedevil.

View 9 Replies View Related

Ubuntu :: When You Lock A Package Shouldn't Updates Be Ignored?

Jan 22, 2011

1. When you lock a package shouldn't updates be ignored? I locked a few but the update-manager keeps bothering me about them.

2. Seems like randomly the checkbox for treat recommended packages as dependencies turns true. It has seemed that way for at least a year.

View 3 Replies View Related

General :: How To Make A Runnable Thread?

Feb 11, 2011

I wrote a code .sh I want to make it a runnable thread.
Q1: How can I do that in Ununtu?

Q2: I put that file ( in the "Auto start" program.I choose start at "start up" but it open the code editor page.I want it to be run behind backgroun...Have I convert it to .exe firstly ?!

View 17 Replies View Related

Copyrights 2005-15, All rights reserved