How to recover a state of  one objects threads by other object

hi everyone
how to recover a state of one object's threads by other object..
i am creating a object in that i have 10 thread..... i have started it then i have closed that object ...then i am creating a new object for the same class ...i need to stop those thread which i have started earlier

saiyath_babuhussain wrote:
hi everyone
how to recover a state of one object's threads by other object..Objects don't own threads so that's hard to understand
>
i am creating a object in that i have 10 thread..... i have started it then i have closed that object ...then i am creating a new object for the same class ...i need to stop those thread which i have started earlierWe don't so much stop threads as inform them politely that their services are no longer required. When you have a long running thread it's almost always a loop, often with a wait or sleep which causes it to wait until it's activitty is needed.
So if you want to be able to wind up a thread from another thread then you put a boolean flag in which can break the loop. The other thread then changes that flag and calls interupt() on the thread it's trying to stop. Interupt will kick the thread out of wait or sleep if that's where it is, causing an InterruptedException. On discovering that the flag indicates it should stop, or on catching an InterruptedException the thread should then clean up and finish.
The master thread can call join on the thread it's stopping if it needs to wait for it to terminate.

Similar Messages

  • How can I move apps from one computer to the other?

    How can I move apps from one computer to the other?
    (preferably without iCloud)

    Backup your iTunes library to an external drive and onto the other computer
    http://support.apple.com/kb/ht1751

  • How do i copy stickies from one mac to the other

    how do i copy stickies from one mac to the other?
    or are they stored in a file i can just copy them over ? if so what is the file name path?
    thanks in advance

    yes, they are stored in the file /users/username/library/StickiesDatabase. just copy it over to the corresponding location on the new computer.

  • OSB : How can we copy  actions from one project folder to other projects?

    How can we copy actions from one project folder to other projects in OSB?
    For eg:
    I have a service call out action in Project1/proxySer1
    I want to copy this to Project2/proxySer2.
    Espicially, in our case error handling callout is common to all of our projects and we should be able to copy from one to another.
    Edited by: user10367892 on Aug 20, 2009 12:28 PM

    Thank you for the reply.
    It was my fault. I was on two different servers, while i was doing this and so didn't work. But copy /past action works as you suggested.
    Can I select multiple actions from one stage and paste to different proxy service? I have too many options to copy/paste and hence I have this question.
    Is there any other way of copying all selected actions in one stage to another, but not the complete stage itselft?

  • When I use Home sharing, I can see the library I want to copy, but when I highlight the library, the import button does not show up. Also, it will not let me drop and drag. How do I get music from one computer to the other computer?

    When I use Home Sharing, I can see the library I want to copy under Shared, but I can't get it save on the computer under the regular library. I go to edit and "select all" but there is no import button that is in the right hand corner. Also, it will not let me click and drag the music. How do I get it from one computer to the other?

    Since both computers are connected via the network, you could simply copy the ENTIRE iTunes folder from one computer to another via the network.
    If both computers are running Windows, use the Easy File Transfer Utility built into Windows to move iTunes and all other user media/data.

  • I have a new iMac and i created two libraries on iTunes. how do i copy songs from one library to the other?

    I have a new imac. I created two libraries, one for me, one for my kids. how do I copy songs from one library to the other library?

    Not easy unless you're just content with adding some files to the other as new files but lose playlists for those files, and playcount, and ratings, etc.  If you're okay with that, you can drag the media folder from one library to the other. If you use default settings and want to duplicate the media, just drag it. If you want to add the media but leave it where it is currently located, hold down the option key while dragging to the library window.
    Otherwise:
    PowerTunes - http://www.fatcatsoftware.com/powertunes/ (commercial software)
    syncOtunes - http://homepage.mac.com/oligrob/syncOtunes/syncOtunes.html

  • How do I transfer music from one iPhone to the other without using a laptop and will I be billed?

    How do I transfer music from one iPhone to the other without using a laptop and will I be billed?

    Download Past Purchases
    http://support.apple.com/kb/HT2519
    Or do you mean this...
    Old Phone to New Phone
    http://support.apple.com/kb/HT2109
    Also...
    It should be Noted that anything Downloaded with a Particular Apple ID is tied to that Apple ID and Cannot be Merged or Transferred to a Different Apple ID

  • How to read URL parameters of one wdp component into other WDP component?

    Dear Experts,
    Can anyone let me know how to read URL parameters of one wdp component into other WDP component?
    My requirement is i have one standard WDP component with 3 URL parameters and i needto
    read that URL parameters along with their values in my Z-WDP component.
    Thanks
    SK

    Hi Santosh,
    You can read parameters send from one WebDynpro Component to another component by adding code in "HANDLEDEFAULT" Event Handler method ( Window )of your target Web Dynpro Component.
    data: lt_parameter             type tihttpnvp,
             ls_parameter             type ihttpnvp.
    lo_api_controller ?= wd_this->wd_get_api( ).
       call method lo_api_controller->get_message_manager
         receiving
           message_manager = lo_message_manager.
       clear : ls_parameter.
       refresh : lt_parameter[].
    * Read all URL parameters
       wdevent->get_data( exporting name = if_wd_application=>all_url_parameters importing value = lt_parameter ).
    if not lt_parameter[] is initial.
         clear : ls_parameter.
         read table lt_parameter into ls_parameter index 1.
         if ls_parameter-name = 'ACTION' and
            ls_parameter-value is initial.
           lv_flag = 'X'.
           clear : lo_msg.
           lo_msg = 'Action Parameter Missing in URL Link !'.
    *         report message
           call method lo_message_manager->report_error_message
             exporting
               message_text = lo_msg.
         else.
         endif.
    Best Regards
    Priyesh Shah

  • How to recover my viber messages? without replacing the other application when i will restore my last backup.

    how to recover my viber messages? without replacing the other application when i will restore my last backup.

    Maybe from the restored iPod via How to perform iPad recovery for photos, videos
    Wondershare Dr.Fone for iOS: iPhone Data Recovery - Wondershare Official     
    http://www.amacsoft.com/ipod-data-recovery.html
    iPod recovery software to restore lost music files      
    http://www.pcrecoverytools.com/ipod-data-recovery.html
    Yu also said:
    I think this is because
    I backed up a long time ago, and the iTunes update may have erased the back up?
    No, updating iTunes does not delete any iOS device backups.

  • I have a 120gb Classic that has no space left on it. i am going to buy a larger gb capacity ipod as soon as i get clearer instruction on how to get the old ipod content to the new ipod. How do you get content from one ipod to the other?

    how do you get content from one ipod to the new one? my content is on an external hard drive not on my pc and i have run out of space on my 120gb classic. can you get old ipod content to new? my itunes has only got short cuts, the real content is on an external drive? can this be done?? please help

    If the content is on an external drive, but your library knows where to find it, then it should all work. Connect your device, make some selections for what to put on it, and sync. If, on the other hand, your current iPod is the only place holding some of your media then see this user tip: Recover your iTunes library from your iPod or iOS device.
    tt2

  • Two forms on same page..save state of one form while submitting other.

    Hi....
    I have 2 form on same page....
    first is form on table....
    nd another is tabular form.....
    now if I make an entry in both table ,,,,and after entering data in tabular form if click on submit button of tabular for the data of tabular form get submitted,,but the data I have been enter in first form get erased.....
    now my question is how can I save state of my first form even after clicking on submit button...........
    pls,help.

    Hi Shirish,
    in your scenario you can write manual process for one form in your both forms, using this way you can achieve you functionality.
    do the above and for that manual process keep the button name as your second form button means, for two forms saving with only one button.
    i am not sure in this, but you can try something.
    Thanks
    Chandran
    Edited by: Chandran on Nov 28, 2011 2:21 AM

  • How do I move Events from one user to the other?

    I have two users on my PowerBook G4 and in preparation of moving all to a new MacBook Pro I want to move the pictures of one user to the other user. I've tried copying them and was successful but the Events did not copy, rather all 530 photos copied as one Event. How do I copy the photos and maintain the Events?

    iPhoto Library Manager is recommended on here many times every day. I can't recall anyone mentioning a significnt issue with it.
    Regards
    TD

  • How can I moving photos from one roll to an other

    I tried to drag and drop photos from one roll to an other. If the roll has a lot of photos (e.g. 250) I can not scroll down to a roll below. iPhotos does not automatically scroll down when I try to drag them down.
    How can I scroll or move these down?
    thanks for your input
    Baguette

    Drag and drop will work, but you have to drag to the roll title. It will turn blue when you can drop the photos. It should scroll when you move to the top or bottom of the window, but sometimes it gets going really fast and is hard to stop where you want it.
    An easy way is to close the rolls and make everything as small as possible so the the source and destination rolls are all in the window at the same time. Of course if you have a really big library this might work.

  • How can i move icons from one screen to the other?

    How do i move icons from one page to another?

    Tap and hold any icon for a couple of seconds. They'll all start to wobble. Tap and drag the one you want to move to the side of the screen and the next screen will appear; drop the icon on whatever screen you want it on.
    You can also do it quicker in iTunes - connect the phone and click the Apps tab in the main window. You'll see a picture of your phone with the apps laid out. Just click and drag

  • How can we change CS5 from one PC to an other PC? How to move CS5 to an other PC?

    We have CS5 on a PC with Windows 7. Now wet want o change to an other PC with Windows 8. How to make it. I work for a company, but I don't know how to change the Program from one to an other PC. Is it possible? Moving from one to the other PC?

    assuming there are no license issues, just install on the 2nd computer using the installation file(s).  if you've already installed/activated on two computers and you have a single user license (as opposed to a volume license), you will need to de-activate (help>deactivate) on one of the other two before installing.
    Downloads available:
    Suites and Programs:  CC 2014 | CC | CS6 | CS5.5 | CS5 | CS4 | CS3
    Acrobat:  XI, X | 9,8 | 9 standard
    Premiere Elements:  12 | 11, 10 | 9, 8, 7
    Photoshop Elements:  12 | 11, 10 | 9,8,7
    Lightroom:  5 | 4 | 3
    Captivate:  8 | 7 | 6 | 5
    Contribute:  CS5 | CS4, CS3
    Download and installation help for Adobe links
    Download and installation help for Prodesigntools links are listed on most linked pages.  They are critical; especially steps 1, 2 and 3.  If you click a link that does not have those steps listed, open a second window using the Lightroom 3 link to see those 'Important Instructions'.
    window using the Lightroom 3 link to see those 'Important Instructions'.<

Maybe you are looking for

  • Time Machine says it need 21 TB space when I only have a 500 GB drive in the computer.

    Hi,  I have a MacBook and was trying to run a Time Machine backup when I got an error saying: "The backup is too large for the backup disk.  The backup requires 21.09 TB but only 369.26 GB are available." I have a 500 GB drive in the MacBook and it o

  • Update 2 tables in 1 mapping fails when using DB link

    Hi, We use OWB10 R2. We have a mapping which should update 2 target tables. 1 table is part of the target schema of the mapping, the other table is located on a different database and is updated through a database link. What we encounter is that only

  • Accidentally removed sync data, can I recover?

    I recently reinstalled Ubuntu. I opened Firefox preferences and tried to add my sync account. I selected the option saying I didn't have my device with me, and proceeded. Next I entered my details and saw that something called a 'recovery key' was ne

  • BAdi to be used to update ECC PO

    Hi, We are using SRM5.0 classic Scenario, I have tried ME_PROCESS_PO_CUST,BBP_INBOUND_PO_BADI, ECS_PO_BACK BAdis but was not able to replicate/ perform modification to the data passed to the ECC PO.even simple changes to volume field or any other fie

  • Network Mode setting on E7

    Dear all, Im kind of new to the site as well as using my new E7. ve set ip all up and its working fine. however I kind of changed the network mode settings to be GSM from Dual Mode under connectivity to reduce my battery usage in power saving i cant