Can a dead thread be alive again !!

can a dead thread be alive again ?
i have added some threads in a thread group. and then called its activeCount() methods.
it is giving results like this....
the active count:10
the active count:5
the active count:2
the active count: 1
the active count: 2 // dead thread alive ?
the active count: 0
is it feasible theoretically ? i am getting that kind of output

as most of the time, the API doc saves the day :
activeCount
public int activeCount()
Returns an estimate of the number of active
tive threads in this thread group. The result might
not reflect concurrent activity,
number of activetive threadswhat is the meaning of active here ? alive() ? there is a isalive() method already ......
and might be
affected by the presence of certain system threads......u mean system thread can leak into my threadgroup....well
Due to the inherently imprecise nature of the
the result, it is recommended that this method only
be used for informational purposes.
Returns:
an estimate of the number of active threads
threads in this thread group and in any other thread
group that has this thread group as an ancestor.
Since:
JDK1.0

Similar Messages

  • Can't Install My Photoshop 7 again. The setup.exe seems dead.

    I can't Install My Photoshop 7 again. The setup.exe file seems dead. The CD looks fine.
    I reinstalled a fresh version of Win. XP Pro Sp3 and it wiped out several of my programs so I've been re-installing them. Of course I lost the registry and have to build a new one by reinstalling my programs. But my Photoshop 7 CD seems to have a dead setup.exe file and it will not respond as it used to. I've tried everything including disabling virus program. I don't know what else to do. Maybe I need a new setup.exe file but I have no idea where I could get one.
    Yes, I do have a registered product. Can anyone help me?
    Thanks, Judi

    Thank you so much for your suggestion R_Kelly.
    Yes, I had tried copying the contents of the installation disk to both my external Seagate drive and right onto the C: drive, itself, but with no success.
    But I just experienced a miracle and it installed like butter - to my utter amazement.  I will share my experience in case someone comes along with a similar problem and maybe my situation will help them.
    When I installed the "rescue disk" to replace my entire OS on my laptop, the techs had given me some choices in options which I really didn't know how to choose from, and I was a professional IT person in the late 90's. That's where I got into trouble. What I wanted to do was just overwrite my Windows XP Pro SP3, like we could do back in the "old days" when computers were open-source and not all proprietary. When I selected to delete the current Windows partition to make room for the new installation, apparently it also deleted the registry and my computer had no knowledge of the programs I had installed and I had to reinstall just about everything.   I thought I was okay with that.
    In the process of finally installing the new Windows OS, I was asked to give my computer a "name."  Well, I don't recall that I ever gave it a name before and there was no place for me to go to find out. So, I gave it a name "JudiLenova."  When I couldn't get my programs to run, I thought that maybe I had not only lost my Registry file but maybe whatever ini files I had left didn't recognize that name, so I changed it to "Judi," still not recalling what, if any, name I had given it before.  As I encountered problems with trying to install Photoshop, I looked at my systems directories and saw that there were equal files in two different pathways, one for each name. I wondered if maybe DOS, which can't make decisions, couldn't decide which path was the right one to find files I needed. I sure regretted not using the "repair" option on the rescue disk, but it was too late. I need this computer to operate using all of the tools I have installed on it.
    I bought a powerful fixit program recommended by CNET to fix things and it found over 1400 problems, but still nothing fixed this problem.
    One thing I had noticed is that sometimes when I would do a restart of the computer, the Windows Installer would suddenly show up to finish the Photoshop install, but then it would stop initializing because of the restart. (So close, and yet so far away!)  I knew the old system was long gone and stupidly I had deleted the full backup I had stored on the Seagate, so I looked at the "restore" option to see what setpoints there were to see if maybe I could roll back to an earlier time. The only restore point I had was for the day I had installed the rescue disk. I said "what the heck" and opted to roll it back. When I made that selection, I got the message that the major change would be that the computer name would be changed from "Judi" to "JudiLenova."  I thought that might solve some of my problem. Amazingly, it appears to have solved the Photoshop problem because I put the disk back into my D: drive and off she went without a hitch!
    My hunch is that DOS couldn't find the Install Shield to enable the installation. Whatever the cause of the miracle, I'm grateful that I didn't toss my computer in the lake outside my window... but it sure was tempting.
    Thank you again for your attempts to rescue me. I hope this helps the next guy who comes along.  Now I'm going to try to install all the rest of my beloved old Adobe programs and everything else.   Fingers crossed!
    Judi :-)

  • Cisco ISE - Reauthentication of client if server becomes alive again

    Dears,
    I have this case where Cisco ISE server is used to authenticate & authorize clients on the network.
    I configured the switch port to authorize the client in case the ISE server is dead (or not reachable).
    The thing is that I want to reauthenticate the client once the ISE server becomes alive again but I am not able to.. ("Additional Information is needed to connect to this network" bullet is not appearing and the client PC remains authenticated and assigned to the VLAN.
    Below is the switch port configuration:
    interface FastEthernet0/5
    switchport access vlan 240
    switchport mode access
    switchport voice vlan 156
    authentication event server dead action authorize vlan 240
    authentication event server alive action reinitialize
    authentication host-mode multi-domain
    authentication order dot1x mab
    authentication priority mab
    authentication port-control auto
    mab
    dot1x pae authenticator
    spanning-tree portfast
    Anyone can help?
    Regards,

    Please check whether the switch is dropping the connection or the server.
    Symptoms or Issue
     802.1X and MAB authentication and authorization are successful, but the switch is dropping active sessions and the epm session summary command does not display any active sessions.
    Conditions
     This applies to user sessions that have logged in successfully and are then being terminated by the switch.
    Possible Causes
     •The preauthentication ACL (and the subsequent DACL enforcement from Cisco ISE) on the NAD may not be configured correctly for that session.  
    •The preauthentication ACL is configured and the DACL is downloaded from Cisco ISE, but the switch brings the session down.  
    •Cisco ISE may be enforcing a preposture VLAN assignment rather than the (correct) postposture VLAN, which can also bring down the session.
    Resolution
     •Ensure the Cisco IOS release on the switch is equal to or more recent than Cisco IOS Release 12.2.(53)SE.  
    •Check to see whether or not the DACL name in Cisco ISE contains a blank space (possibly around or near a hyphen "-"). There should be no space in the DACL name. Then ensure that the DACL syntax is correct and that it contains no extra spaces.  
    •Ensure that the following configuration exists on the switch to interpret the DACL properly (if not enabled, the switch may terminate the session):  
    radius-server attribute 6 on-for-login-auth
    radius-server attribute 8 include-in-access-req
    radius-server attribute 25 access-request include
    radius-server vsa send accounting
    radius-server vsa send authentication

  • How to find that a thread is alive or not

    Hi all,
    I've create a thread to make a http request in every 10 second and get a string as the response from the server. Requesting process start on the window open. And also I can dispose the window, so my processing is not stop. That is exactly what I want to do.
    Say after disposing the window I open it again. So the same thread start again while the first one is running. It messup my work. So I think of it. Every window open try to check that thread is alive or not. If alive stop the thread and start is again.
    So I try this simply.
        public boolean ThreadIsAlive(){
            if(processThread.isAlive())
                return true;
            else
                return false;
        }If I found the thread true on the above code, I want to stop it. So I try this.
        public void stop(){
            processThread = null;
        }I think up to now what I have done is ok. Then on the ActionListner I do this.
                    ActionListener actionListener = new ActionListener(){
                        public void actionPerformed(ActionEvent e){
                            if(appProcess.IsThreadAlive()){
                            appProcess.stop();
                            System.out.println("Main Dialog!");
                            java.awt.EventQueue.invokeLater(new Runnable() {
                                public void run() {
                                    MainDialog dialog = new MainDialog(new javax.swing.JFrame(), true);
                                    dialog.setVisible(true);
                    };No compile error. But I got a runtime exception.
    Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
            at mytrayicon.Processing.IsThreadAlive(Processing.java:82)
            at mytrayicon.PanelRadarMain$3.actionPerformed(PanelRadarMain.java:73)
            at java.awt.TrayIcon.processActionEvent(TrayIcon.java:750)
            at java.awt.TrayIcon.processEvent(TrayIcon.java:708)
            at java.awt.TrayIcon.dispatchEvent(TrayIcon.java:690)
            at java.awt.EventQueue.dispatchEvent(EventQueue.java:604)
            at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
            at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
            at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173)
            at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
            at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
            at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)Can anybody help me to solve this.
    Thanks

    ItsJava wrote:
    Hi all,
    I've create a thread to make a http request in every 10 second and get a string as the response from the server. Requesting process start on the window open. And also I can dispose the window, so my processing is not stop. That is exactly what I want to do.
    Say after disposing the window I open it again. So the same thread start again while the first one is running. It messup my work. So I think of it. Every window open try to check that thread is alive or not. If alive stop the thread and start is again.
    So I try this simply.
    public boolean ThreadIsAlive(){
    if(processThread.isAlive())
    return true;
    else
    return false;
    }If I found the thread true on the above code, I want to stop it. So I try this.
    public void stop(){
    processThread = null;
    That does not "stop" the thread, it simply removes that reference to it.
    >
    I think up to now what I have done is ok. Then on the ActionListner I do this.
    ActionListener actionListener = new ActionListener(){
    public void actionPerformed(ActionEvent e){
    if(appProcess.IsThreadAlive()){
    appProcess.stop();
    System.out.println("Main Dialog!");
    java.awt.EventQueue.invokeLater(new Runnable() {
    public void run() {
    MainDialog dialog = new MainDialog(new javax.swing.JFrame(), true);
    dialog.setVisible(true);
    };No compile error. But I got a runtime exception.
    Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
    at mytrayicon.Processing.IsThreadAlive(Processing.java:82)
    at mytrayicon.PanelRadarMain$3.actionPerformed(PanelRadarMain.java:73)
    at java.awt.TrayIcon.processActionEvent(TrayIcon.java:750)
    at java.awt.TrayIcon.processEvent(TrayIcon.java:708)
    at java.awt.TrayIcon.dispatchEvent(TrayIcon.java:690)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:604)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)
    I'm sorry, but you set a reference to null, then attempt to derference it, and you wonder why you get an NPE?
    >
    Can anybody help me to solve this.
    ThanksTo stop the thread, have a volatile variable that you can change the value of using a synchronized method, and have the thread
    periodically check the value of this variable and stop itself when the value equals a specific value. That is one way to properly
    stop the thread.

  • The Concept of Dead Thread

    1)What do u mean by a dead thread????
    2)Is it possible to restart a dead???
    I think we can never kill a thread....... i think the underlying OS plays a vital role in this aspect
    Please correct me if im wrong

    Hi This is Kranthi .Ca u be clear reg this concept of
    dead thread.One last time:
    A thread is considered dead if it has been started and since terminated. A thread terminates after its run() method completes either normally or abruptly. In the abrupt case the uncaughtExceptionHandler code has to be executed before the thread truly terminates.
    The Thread isAlive() method returns true if the thread has been started and has not yet temrinated. So it can't distinguish between a dead thread and a "new" one that hasn't been started yet.
    The Thread getState() method will return TERMINATED for a dead thread.

  • To check wether any thread is Alive

    I have code in some method
    while(!checkThreadState(one))
         try{
              wait(600);
         }catch(Exception e){
         System.out.println("Exception in wait"+e.getMessage());
    return value;
    after that it returns some value
    So i have to return value when each and every thread completes its execution.
    Where checkThreadState function check whether any of the thread is Alive or not.
    public boolean checkThreadState(Thread[] t){          
              int set=0;
              for(int i=0;ino_threads2;i++)
                   if (t.isAlive())
                        return false;
              return true;
    No of threads are configurable in property file.
    But this approach is not very good. Because making a thread in wait state leads to performance degradation. Because i have to use this logic in any no. of threads having more than 10K records.
    The other logic is not clicking in my mind.
    Can someone tell me other logic to check whether any of thread is aLive or not. (No. of threads are configurable).
    Thanks

    Because making a thread in wait state leads to performance degradation.Compared to what?
    I would just iterate the array and join() each thread in turn myself.

  • How can i get my serial number again?

    Hello,
    I have bought my adobe pruduct (premiere elements 12) ca two years ago and got a serial number.
    Now I have a new computer and want to install the product again, but I just can't find the code anywhere. When i go to 'my prodcts' it says, no registrated products, even if I have bought the pruduct. I have also checked my emails but cant find the code there..
    Please Help Me !
    best regards,
    Boas

    Hey Jeff,
    how is it possible to find the serialcode with Belarc Advisor? Do i have to
    search 'serial number'?
    Thanks
    Gesendet mit meinem Asus Ultrabook
    2015-05-01 0:27 GMT+02:00 Jeff A Wright <[email protected]>:
        Hey Nerds, How can i get my serial number again?
    Jeff A Wright
    <https://forums.adobe.com/people/JeffAWright?et=watches.email.outcome>
    marked Ned Murphy
    <https://forums.adobe.com/people/Ned+Murphy?et=watches.email.outcome>'s
    reply on Hey Nerds, How can i get my serial number again?
    <https://forums.adobe.com/thread/1829454?et=watches.email.outcome> as
    helpful. View the full reply
    <https://forums.adobe.com/message/7486560?et=watches.email.outcome#7486560>

  • HT1766 I have iPhone 4. I deleted a thread of SMS by mistake. Last back on iCloud was on 14/05/2013. How I can retrieve this thread of SMS till 19/05/2013!?

    I have iPhone 4. I deleted a thread of SMS by mistake. Last back on iCloud was on 14/05/2013. How I can retrieve this thread of SMS till 19/05/2013!?

    You're welcome.
    Text messages are included with the iPhone's backup.
    http://support.apple.com/kb/HT4946
    iTunes will back up the following information
    Contacts* and Contact Favorites (regularly sync contacts to a computer or cloud service such as iCloud to back them up).
    App Store Application data including in-app purchases (except the Application itself, its tmp and Caches folder).
    Application settings, preferences, and data, including documents.
    Autofill for webpages.
    CalDAV and subscribed calendar accounts.
    Calendar accounts.
    Calendar events.
    Call history.
    Camera Roll (Photos, screenshots, images saved, and videos taken. Videos greater than 2 GB are backed up with iOS 4.0 and later.)
    Note: For devices without a camera, Camera Roll is called Saved Photos.
    Game Center account.
    Home screen arrangement.
    In-app purchases.
    Keychain (this includes email account passwords, Wi-Fi passwords, and passwords you enter into websites and some other applications. If you encrypt the backup with iOS 4 and later, you can transfer the keychain information to the new device. With an unencrypted backup, you can restore the keychain only to the same iOS device. If you are restoring to a new device with an unencrypted backup, you will need to enter these passwords again.)
    List of External Sync Sources (MobileMe, Exchange ActiveSync).
    Location service preferences for apps and websites you have allowed to use your location.
    Mail accounts (mail messages are not backed up).
    Installed Profiles. When restoring a backup to a different device, installed configuration profiles are not restored (such as accounts, restrictions, or anything which can be specified through an installed profile.) Any accounts or settings that are not associated with an installed profile will still be restored.
    Map bookmarks, recent searches, and the current location displayed in Maps.
    Microsoft Exchange account configurations.
    Network settings (saved Wi-Fi hotspots, VPN settings, network preferences).
    Nike + iPod saved workouts and settings.
    Notes.
    Offline web application cache/database.
    Paired Bluetooth devices (which can only be used if restored to the same phone that did the backup).
    Safari bookmarks, cookies, history, offline data, and currently open pages.
    Saved suggestion corrections (these are saved automatically as you reject suggested corrections).
    Messages (iMessage and carrier SMS or MMS pictures and videos).
    Trusted hosts that have certificates that cannot be verified.
    Voice memos.
    Voicemail token. (This is not the voicemail password, but is used for validation when connecting. This is only restored to a phone with the same phone number on the SIM card).
    Wallpapers.
    Web clips.
    YouTube bookmarks and history.
    * Your contacts are part of the backup to preserve recent calls and favorites lists. Back up your contacts to a supported personal information manager (PIM), iCloud, or another cloud-based service to avoid any potential contact data loss.
    http://support.apple.com/kb/HT4859
    What is backed up
    You get unlimited free storage for:
    Purchased music, movies, TV shows, apps, and books
    Notes: Backup of purchased music is not available in all countries. Backups of purchased movies and TV shows are U.S. only. Previous purchases may not be restored if they are no longer in the iTunes Store, App Store, or iBookstore.Some previously purchased movies may not be available in iTunes in the Cloud. These movies will indicate that they are not available in iTunes in the Cloud on their product details page in the iTunes Store. Previous purchases may be unavailable if they have been refunded or are no longer available in the iTunes Store, App Store, or iBookstore.
    You get 5 GB of free iCloud storage for:
    Photos and videos in the Camera Roll
    Device settings (for example: Phone Favorites, Wallpaper, and Mail, Contacts, Calendar accounts)
    App data
    Home screen and app organization
    Messages (iMessage, SMS, and MMS)
    Ringtones
    Visual Voicemails
    You can select which applications back up their data and see how much storage space each application is using:
    On your Home Screen, tap Settings
    Tap iCloud
    Tap Storage & Backup
    Tap Manage Storage
    Select the device you want to manage

  • Does detergent can fix dead mobo...??!!

    i don't know it was joke or not but i read that detergent can fix dead mobo... have anybody ever heard that..??! 

     From a thread at Tom's Hardware regarding someone that sprayed his CPU HSF full of WD40 and got it into the CPU socket:
     "Try soaking your PC in a bathtub full of water+ laundry detergent to break down the WD40 and degrease it off.
    OK...not really, that was a joke. "
     Beats me where you would get such an idea re: the detergent.

  • [FOREXAM] Accessing methods of a dead thread?

    Could anyone explain me why it is possible to access methods of a dead thread?
    Marco

    >
    If the thread is accessible from your program -- ie,
    you have a reference to the Thread object -- then it
    won't be GC'd.Ok, let's immagine the following situation:
    void methodA(Runnable aR){
    Thread aT = new Thread(aR);
    at.start();
    .. //The Thread is doing something
    ..//Now the Thread is dead for some reasons(completed or terminated)
    //What can I do here with at? Can I still use it?
    Marco

  • [Dead thread]

    Hi all,
    Newbie here. When I start X (+openbox) the display of my laptop (Toshiba S1800-514) is not used in full. There is a black border of 1 inch along the top and bottom and of 1.5 inch on the left and right hand side. As this is only a 14" screen, precious real estate is being wasted here! The resolution I use is 800x600 and Openbox Display Setting does not give me any higher values to choose from. In my /etc/X11/xorg.conf  under "Screen" I have:
    Identifier "Screen0"
    Device     "Card0"
    Monitor    "Monitor0"
    DefaultColorDepth=24
    and under Subsection "Display" the last one reads:
    Viewport 0 0
    Depth    24
    Modes "1280x1024" "1024x768" "800x600" "640x480"
    I have also tinkered with vga=<value> in the kernel line of /boot/grub/menu.lst, but that doesn't make any difference.
    Final observation: after enabling "stretch"-something in Bios, the screen is used more fully to the left and right, as long as I stay in Arch itself; as soon as I start X, the screen shrinks again.
    lspci | grep VGA returns: 01:00.0 VGA compatible controller: Trident Microsystems Cyberblade XPAi1 (rev 82)
    All tips are greatly appreciated by this clueless Dutchman! I have searched the forums, but I seem to be the only person in the world who has this problem (well, what else is new?)
    Cheers,
    Leo
    Last edited by LeoAtFarm (2009-10-29 15:06:36)

    Might I be as bold as to recomend a different set of tutorials.
    http://java.sun.com/docs/books/tutorial/index.html
    http://java.sun.com/docs/books/tutorial/essential/threads/index.html
    For a start "stop" is pointless. The threads stop as soon as they exit "run".
    Thread.join Waits for this thread to die so dead threads, it will just return.

  • I have an ipad mini. From one moment to another a document that was created and used on pages app ( on the ipad mini) does not want to open ( When pressed it states " document cant be opened). How can I make this document open again?

    I have an ipad mini. From one moment to another a document that was created and used on pages app ( on the ipad mini) does not want to open ( When pressed it states " document cant be opened). How can I make this document open again?
    I have tried back ups and  restoring, resetting, and even updating the pages app. And nothing has worked.

    I have an ipad mini. From one moment to another a document that was created and used on pages app ( on the ipad mini) does not want to open ( When pressed it states " document cant be opened). How can I make this document open again?
    I have tried back ups and  restoring, resetting, and even updating the pages app. And nothing has worked.

  • I need to make a pdf document, made in photoshop, 'page turn' and then add it to my website. I know I can do this in indesign but indesign will not open pdf files for some inexplicable reason. Any ideas how I can do it without completely starting again?

    I need to make a pdf document, already made in photoshop, 'page turn' and then add it to my website as an e-brochure. I know I can do this in indesign but indesign will not open pdf files for some inexplicable reason. Any ideas how I can do it without completely starting again?

    Hello waitingone,
    please try this (all terms are translated from my German programs to my best knowledge):
    1. Did the creator of the pdf file enable the import options?
    2. See import options: choose an other visibility option for your layer.
    3. Let you show the import options and click into one with a black background and try these out (often a gray is selected).
    4. See trimming: try the different modes there. Often works: "Media".
    5. Is the pdf file (eg from Word) correctly created?
    6. Is the PDF file protected? >>> no import possible.
    7. If that does not help, store the pdf file in Acrobat, repair possible errors, run the PDF Optimizer before placing in InDesign.
    Good luck!
    Hans-Günter

  • HT5625 my apple id has been disabled and i do not know how do i can download app from app store again

    my apple id has been disabled and i do not know how do i can download app from app store again

    If changing your password does not resolve, then contact itunes support

  • What happened to the nifty "sync" button in iTunes? It syncs as soon as I plug it in, and that's great! BUT! When I go to the iTunes Store and buy new stuff, I can't just 'sync' the device again so my new stuff gets added. Why?

    What happened to the nifty "sync" button in iTunes? It syncs as soon as I plug it in, and that's great! BUT! When I go to the iTunes Store and buy new stuff, I can't just 'sync' the device again so my new stuff gets added. Why?

    Nothing happened to it.
    It is still there.  Maybe it says apply now, not sure, but it is still there.

Maybe you are looking for

  • How to get data from subsites list of SharePoint 2010 in ssrs

    Hi, Can someone help me on this issue. I want to create a report using ssrs, I have some of the data in SQL and some of the data in sharepoint list. First I need to go to SQL and get the data from the table which contains URL for the subsite in share

  • How to Execute a cmd file in my ps script?

    Hi All, I have a cmd file which calls an msi and passes paramters. I am calling this deploy.cmd file from a powershell script. How can i achive this? I am trying the following but it does not work. Invoke-Command {& "D:\deploy\ABC_Installed\ETRM (QA)

  • Pass input value to a concurrent program of type PL/SQL procedure

    Hi, I have created an executable program which is based on "PL/SQL Stored Procedure" method and created a concurrent program which calls this executable. It is available from SRS. The relevant stored procedure requires an input variable as parameter.

  • RF scanner set up /Implementation

    Hi Please explain the procedured invloved in a RF scanner implementation in a Warehouse. I assume the areas involved are. 1) IMG Mobile config 2) SAP Console setting 3) RF Device to SAP Console communication. Plse give as much information as possible

  • Problem HP Deskjet F4180 and

    I have an iMac with OSX operating system, version 10.9.4. Recently, I updated the software installing the Maverick OSX. My system also includes HP Deskjet F4180 scanner/printer. After this update,  any scanned document or photo when printed are usele