How to Stop Parallel Thread


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users How to Stop Parallel Thread
# 1  
Old 11-21-2011
How to Stop Parallel Thread

Two processes r running in parallel and there respective THREDS r also running.when the execution of both the processes completes.Respective THREADS r STILL running. how to stop these running THREDS.
# 2  
Old 11-21-2011
In most systems, threads die when main() does. What's your system? How are you checking if threads are still running?
This User Gave Thanks to Corona688 For This Post:
# 3  
Old 11-21-2011
I m working in windows system. I m seeing running threads using PS -ef command.and after process executiuon completes.threads still running. and they stops in 2-3 days. others alternative than KILL command???

What main() does according to you????
# 4  
Old 11-22-2011
Windows doesn't have ps, or even kill. There are things which pretend to do them in windows, but they're still stuck with Windows software limits. Windows isn't UNIX.

What are you using?
# 5  
Old 11-23-2011
m using Unix,and getting msg from MQ.processes are still running even task are completed.
# 6  
Old 11-23-2011
Exactly what messages are you getting from "MQ.processes are still running even task are completed" ?
# 7  
Old 11-23-2011
Quote:
Originally Posted by skbhardwaj89
I m working in windows system.
Quote:
Originally Posted by skbhardwaj89
m using Unix
Mutually exclusive, unless you mean you're ssh-ing into something. What is your system? In detail. uname -a

Last edited by Corona688; 11-23-2011 at 11:16 AM..
Login or Register to Ask a Question

Previous Thread | Next Thread

4 More Discussions You Might Find Interesting

1. Forum Support Area for Unregistered Users & Account Problems

Not able to post thread/reply to thread

Dear Moderator I am not able to post any new thread or post reply to mine old thread. Kindly help as i am stuck on one problem and needed suggestion. Regards Jaydeep (1 Reply)
Discussion started by: jaydeep_sadaria
1 Replies

2. Programming

Parent Thread Of Child Thread

Parent Thread Of Child Thread Suppose a process creates some threads say threadC and threadD. Later on each of these threads create new child threads say threadC1, threadC2, threadC3 etc. So a tree of threads will get created. Is there any way to find out the parent thread of one such... (1 Reply)
Discussion started by: rupeshkp728
1 Replies

3. UNIX for Advanced & Expert Users

how to stop others users to stop viewing what i am doing ?

Hi , I have one question, suppose i am a normal user and when i use 'w' command , it shows who is logged on and what they are doing . Now i want to stop others users to know what i am doing accept the root ? can i do this ? thanks (5 Replies)
Discussion started by: mobile01
5 Replies

4. Programming

How to cancel a thread safely from the initial thread?

how about asynchronous canceling? or with signal? if with signal whether it effects the process? my english so badly :( :( (1 Reply)
Discussion started by: alan.zhao
1 Replies
Login or Register to Ask a Question