How to close Thread

HI,
I  open previous thread and i don't get answer ,
i wont to close it how i do that?
Regards

By searching this forum, I found the thread below which explains on how to close threads.
https://forums.sdn.sap.com/click.jspa?searchID=16410079&messageID=5867611

Similar Messages

  • How to close other thread's InputStream?

    Hi,
    I am developing a multithreaded "JAVA CONSOLE APPLICATION".
    Brief description of application is like this:
    On initialising, application starts a new thread. In that it listens for the keyboard input from the user(System.in.read()). But it listens only for some time (5 seconds). After this time, this should be stopped and in main thread which is listening for the server application, should display information from the server and listen for the keyboard input from the user.
    But the problem is, it listens for two keyboard inputs. 1 in main thread and another in other thread as it doesn't get closed even though the thread is stopped.
    So how to close that InputStream so that application should listen for keyboard only in main thread?
    Thanx in Advance,
    Sameer Mahajan

    Not really sure if this works, as your description isn't clear.
    But for sockets, the following works :
    public void run { //the Threads/Runnable run method
       try {
          //do your stuff
       } finally {
          try {
             is.close(); //supposed 'is' is your InputStream
          } catch (IOException e) {}
    }Now, whenever the thread terminates, the InputStream will be closed.
    Maybe even if you use Thread.stop(), but this is deprecated,
    so better use Thread.interrupt() and flags.

  • How to Close Issue

    hi Experts..
      When i got the solution ..Please tell how to Close the Thread....
    Cheers..Purushottam

    Hi,
    You can either assign 10 points to the answer that solved your problem. Or if you found a solution yourself, you can click on the radio button for Solved by myself.
    Hope this helps...

  • How to use threads in JSP???

    hello
    i want to use threads with JSP.
    i want to write a jsp page which will
    start 2 different threads. the 1st thread should just display a message and the second page should redirect this page to another jsp page.
    till the redirection is goin on, the message should be displayed in the browser from the 1st thread.
    i dont know actually how to use threads in JSP by implementing the Runnable insterface, if not m then how do i do it ??
    thanx
    Kamal Jai

    Why do you want to use threads to do this ??
    If you write a message and do a redirection, the message will be displayed until the other page will be loaded into the browser...
    I already launched a thread from a JSP but it was for a four hour process where the user can close his browser windows.

  • How to finish thread, listening to a socket input?

    Hello!
    Can anybody tell me how to correctly interrupt/close thread, listening to a socket input from a server?
    I have a separate thread which listens to an input from server. When a client disconnects from server, it should be closed. I do:<p>
    <code>
    Thread th=new Thread(myRunnable);
    th.start();
    Thread old=th;
    th=null;
    old.interrupt();
    </code>
    But nevertheless I get a SocketException. This is because in thread I use<p>
    <code>
    public void run()
    MyMessage incoming=null;
    while((incoming=(MyMessage)reader.readObject())!=null)
    </code>
    and I/O methods are blocking current thread's running process. Is this technics correct? Any other suggestions?
    Thanx.

    There have been issues with achieving consistent interruption of I/O across all platforms. The recommended approach seems to be to close the socket that the other thread is using, rather than interrupting the other thread.
    If you first set a flag (declare it volatile) before closing the socket, you can use the fact that this flag is set as an indication in the other thread that the exception it gets should just be ignored.
    Sylvia.

  • How to close a issue

    Dear Sir/madam,
    If i'm posted 10 issue, how i close the issue ?
    To rise a thread like close issue or go to Questions and that point i delete one of the relevant issue
    Regards,
    Sahoo

    See - [https://support.mozilla.com/en-US/kb/Firefox%20hangs#w_firefox-hangs-when-you-quit-it Firefox hangs when you close it]

  • How to close extended classic PO in ECC...

    Hi Friends...
    We are in SRM 7.02 and ECC 6.05 in Extended Classic Scenario. One PO had been created for 1 Quantity 3 years ago. There was no GR/IR document posted against that PO. Now that PO had been archieved from SRM. But still PO is available in ECC with open quantity and also its appearing in the open PO report. Now requester wanted, the PO to be closed in ECC and shouldnot appear in the open PO list.
    How to handle this situation.. How to close the extended classic PO in ECC at this scenario. As PO not available in SRM, we can not do anything from SRM side.
    Your inputs are appreciated....
    Regards
    Sivakumar Kandasamy

    Hi Sivakumar,
    If you mean how to archive PO in MM side, please refer to the following info:
    ====
    In ECC system, if you want to archive a MM PO, please use transaction
    SARA->archive object MM_EKKO.
    456129 FAQ: Archiving in purchasing
    401318 Archiving: Additional information
    ====
    If you want to delete this ECC PO, please use BAPI_PO_CHANGE and
    refer to the following test data:
    Parameters:    PURCHASEORDER      =  XXXXXXXXX
    Parameters:    POITEM
    PO_ITEM                        = 00010
    DELETE_IND                     = X
    Parameters:    POITEMX
    PO_ITEM                        = 00010
    PO_ITEMX                       = X
    DELETE_IND                     = X
    You also need to run BAPI_TRANSACTION_COMMIT after BAPI_PO_CHANGE for updating the change.
    Regards,
    Ivy

  • After the update I don't know how to close running apps? I recall double clicking the main button then hold one app until they begin a jiggling motion. But that no longer works.

    How do close running apps?

    You still double tap the home button and the apps are lined up across the screen. Swipe up on the app preview thumbnail - drag it up off of the screen - and that will close the app.

  • How to close iOS7 apps?

    Prior to iOS7 you simply double clicked the home button to show open Apps and you could then close them all down.  That doesn't seem to happen with iOS7.  Any idea how to close open Apps?
    ... The learning curve beings

    Thanks ...
    That's what I was trying, but I guess I was doing so to quickly.  Once I slowed down they finally moved.  Now ... if the former Apps wouldn't crash I'd be all set, ROFL.  Going to be a learning curve for the developers as well I think.
    So much to learn

  • Can anyone advise how to close apps on iPad with new iOS? I have multiple open and cannot close them.

    Can anyone advise how to close apps with the new iOS?  I have multiple open and cannot close them

    Double-tap on the Home button. You will see a preview of the app above the actual icon. Slide the preview up to kill it.
    Please get the iPhone User Guide (For iOS 7 Software)Sep 19, 2013 - 23 MB.

  • How to close sidebar under ios 8 in order to use the whole screen for reading?

    How to close sidebar under ios 8 so that i can have the full screen for reading?

    Sidebar where?
    In Safari?Tap on the Blue open book icon at the very top of the screen. There are two such icons, it is the one on top you want to tap to close the sidebar.

  • How to close email notifications to senders from HP eprintCenter?

    Hi,
    How to close email notifications to senders from HP eprintCenter?
    Thank you.

    Hi Jack7363,
    Welcome to the HP Support Forums. I gather that you would like to know how to turn off notifications from HP’s ePrintCenter.
    To better assist you, would you please supply some additional information:
    What make/model/product number of HP printer do you have? How Do I Find My Model Number or Product Number?
    How is the printer connected (USB cable, ethernet, or wireless)?
    Do you have an HP Connected account or HP ePrintCenter account?
    Are the emails coming [email protected]?
    Thank you.
    Regards,
    Happytohelp01
    Please click on the Thumbs Up on the right to say “Thanks” for helping!
    Please click “Accept as Solution ” on the post that solves your issue to help others find the solution.
    I work on behalf of HP

  • How to close apps on iPhone 4

    I tried everything it says from the web from pressing the hold button 2 times and bottom shows the apps but cannot get the minus sign or get them to wiggle like people say anyone know how to close apps like this. mINE DOES NOT WORK SUPPOSE TO GET A MINUS SIGN OR HOLD TO WIGGLE NO LUCK.

    Maybe a visual will help: https://sites.google.com/site/appleclubfhs/support/advice-and-articles/locking-o rientation

  • How to close goods receipt PO

    Hi All,
    We are using SAP 8.8
    how to close Goods Receipt PO that has been pulled to A/P Invoice with a partial amount of freight ?
    i.e.
    Our GRPO has freight 5000.
    On pressing COPY FROM button in A/P invoice we selected that GRPO
    On Pressing Customize button
    Items in the GRPO appear
    We selected all items and press next
    Freight appears
    We edited freight amount from 5000 to 3000 and pulled GRPO into invoice and saved.
    After this OUR GRPO and freight remains
    Guidance in this is really needed as we want to tally stock
    Thanks
    Malhaar

    Hi Malhaar......
    Does it happen all the time like this reversal of entry?
    Like how you tested in demo this kind of scenario I would suggest you to do this excercise too.
    So that you get knowledge about that and Today you are asking this doubt but after doing this excercise you will come to know the exact effect and next time you can suggest this to others if he has same problem and will become expert in SAP
    All the Best
    Regards,
    Rahul

  • HT1212 how to close apps if your phone is locked because you forgot the password

    I need to close "find my iphone" in order to restore my phone. I don't know how to close this app

    Go to a computer.  Use its internet browser to sign on at http://www.icloud.com
    Go to Find My iPhone there.  Click on your device and choose "Remove This Device".

Maybe you are looking for

  • Validation for Project defination and project profile

    Hello, I have to create validation for Project Definition and Project Profile.User requirement is when the project (Exp: Z/0120) is creating with project profile Exp: Z0001_Z system should allow , If user is trying to select other than this profile s

  • How java execute thread

    Can any one tell me Which of the following statements are true 1.     To determine which thread has to execute set the priority code of the thread. 2.     Java uses a time-slicing scheduling system to determine which thread to execute. 3.     Java us

  • Help needed on JComboBox

    hi all , I am curreently stuck up in handling a JComboBox Actually i need a editable JComboBox in which the user can select either from the drop down list or the user can type it in the text field Now if the user types few characters in the text fiel

  • GetCharBoundaries equivalent in spark text components

    Is there an easy way in the new text components to do what getCharBoundaries (in flex.TextField) does? (i.e. get the position of a particular character within a text field) So far, all I've come across is getAtomBounds in the TextLine class. But I'm

  • Spotlight NOT Indexing or SHOWING files? Nothing shows IN PRIVATE

    Being stupid and doing something without knowing what would happen, I read a tip on battery life to add the HD or folders to PRIVACY to TURN OFF INDEXING. Well now, nothing happens when I search. Of course, as it was, when I went to PRIVACY, nothing