General :: Stop Thread By Using Commands - Process Shouldn't Disturbed
Feb 12, 2010How to stop a thread by using commands? Other threads in that process shouldn't disturbed. Is it possible to do the same?
View 2 RepliesHow to stop a thread by using commands? Other threads in that process shouldn't disturbed. Is it possible to do the same?
View 2 RepliesI've some file with .sh extensions that runs some softwares.Now,how do I stop running that filesI know we run the command ./start_tomcat.sh 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 RelatedIn 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.
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".
How to get list of threads of a process using C code in Linux?
View 6 Replies View Relatedis 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 RelatedI 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]...
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 RelatedI 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".
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 RelatedI 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 RelatedIs it possible to enforce a certain exit code when using "kill" to stop a process?
View 2 Replies View RelatedI 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?
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 RelatedI'm running an update, and get this:
Code:
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.
[Code]...
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 RelatedI'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 RelatedI'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.
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 RelatedI have a Python program looks like this one :
Code: import os
import time
process = os.popen("top").readlines()
[code]...
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?
[Code]....
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 RelatedI'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 Relatedi 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 RelatedI 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 RelatedI 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 RelatedI 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 RelatedI 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 Related1. 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.
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 (x.sh) 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 ?!