How can I know a class which implements Runnable interface has terminated?

Hello! I have a class which has implements Runnable interface, while I want to execute some operation when the thread has terminate in multithread enviroment.How can I know the thread has terminated?Does it give out some signal?Cant I just call my operation at the end of the run() method?

I want to execute some operation when
the thread has terminate in multithread enviroment....
Cant I just call my operation at the end
of the run() method?Sure. Before run() ends, invoke that other operation.
How
can I know the thread has terminated?Does it give out
some signal?Not that I'm aware of, but you can do what you described above, or I believe a different object can call isAlive on the thread.

Similar Messages

  • How to get classes which implement the interface in program

    Hi,
    I created an interface and some classes are implementing it. I want to know in which classes the interface is implemented through program. I mean in which table the interface implemented details stores.
    please helps regarding this.
    Thanks,
    Regards,
    Priya

    Hi.,
    Read the  database view VSEOIMPLEM with where condition.,  REFCLSNAME =  <Interface Name> and Version = 1.
    This gives the class names which implement the interface.,
    hope this helps u.,
    Thanks & Regards,
    Kiran

  • How can I know if a manually created Journal Entries has not been paid yet?

    Hi There.
    I'm passing through the following situation: I need to find out which Journal Entries that have been manually created ( TransType = 30 ) don't have an Outgoing Payment record associated
    Lets suppose that I manually created a Journal Entry. Let's call it OJDT_MAN
    Then, I went to the Outgoing Payments Form ( Modules -> Banking -> Outgoing Payments -> Outgoing Payments ) and paid OJDT_MAN.
    This process will create another Journal Entry. Let's call it OJDT_AUTO.
    I can't find in the database anything that indicates that OJDT_MAN has already been paid. I tried looking for a Status field; Checking if OJDT_AUTO had some code that could get me to OJDT_MAN ( I found BaseRef and TransType = 46, that can guide me to the new OVPM record ); Tried looking at the new OVPM record for some field that could lead me to OJDT_MAN, but I had no success at all...
    So, in resume, and again, how can I know if a manually created Journal Entry hasn't been paid?
    (When I go to the Outgoing Payments Form and select a Business Partner, it B1 shows me only the not paid ones... How does he knows it? )

    Just to make it more clear, the SQL we were looking for is this:
    Select
    From
      OJDT
    Where
      OJDT.TransId Not In ( Select VPM2.DocEntry From VPM2 Where VPM2.InvType = 30 )
      And
      OJDT.TransType = 30

  • How can I know where(In which country) my iPhone was manufactured?

    Can we get to know from the Serial Number where(in which country) iPhone was manufactured...?

    naah...
    Actually my gf purchased a second hand iPhone 4S.... Is der any way to find out from where d original buy had purchased it....??

  • How can I know the account which I bought Keynote?

    I bought Keynote, but I can´t update it.

    The only way to update an older version of Keynote is to use;
    Apple menu > software update
    If there are updates available they will be listed but it is very unlikly there are any after all these years.
    For example, Keynote version 3.02 was last updated in 2005
    you dont need an Apple ID to use updater

  • How can we know the feature we planned to add has crossed apple's border line

    Currently, we have an application, which is able to measure your heart rate by using camera to capture human face. we plan to add in 1 new feature into our app
    Let the application runs in stealth mode background, acquire camera resource and perform continuous signal processing on the capture image.
    According to
    http://developer.apple.com/library/ios/#DOCUMENTATION/iPhone/Conceptual/iPhoneOS ProgrammingGuide/ManagingYourApplicationsFlow/ManagingYourApplicationsFlow.html
    In iOS, only specific app types are allowed to run in the background:
    Apps that play audible content to the user while in the background, such as a music player app
    Apps that keep users informed of their location at all times, such as a navigation app
    Apps that support Voice over Internet Protocol (VoIP)
    Newsstand apps that need to download and process new content
    Apps that receive regular updates from external accessories
    It seems that our planned feature is not in the allowed list? May I know, is there any official way I can get clarification from Apple, before deciding to pour our resource, to develop a feature which will later banned from Apple App Store?
    Thanks

    Your app could have a detrimental effect on battery life.
    Apps are not allowed do do any kind of contiual processing in the background.
    The only way to know for certain if your app will not be rejected is to submit it.

  • Performance wise which is best extends Thread Class or implement Runnable

    Hi,
    Which one is best performance wise extends Thread Class or implement Runnable interface ?
    Which are the major difference between them and which one is best in which case.

    Which one is best performance wise extends Thread Class or implement Runnable interface ?Which kind of performance? Do you worry about thread creation time, or about execution time?
    If the latter, then don't : there is no effect on the code being executed.
    If the former (thread creation), then browse the API Javadoc about Executor and ExecutorService , and the other execution-related classes in the same package, to know about the usage of the various threading/execution models.
    If you worry about, more generally, throughput (which would be a better concern), then it is not impacted by whether you have implemented your code in a Runnable implementation class, or a Thread subclass.
    Which are the major difference between them and which one is best in which case.Runnable is almost always better design-wise :
    - it will eventually be executed in a thread, but it leaves you the flexibility to choose which thread (the current one, another thread, another from a pool,...). In particular you should read about Executor and ExecutorService as mentioned above. In particular, if you happen to actually have a performance problem, you can change the thread creation code with little impact on the code being executed in the threads.
    - it is an interface, and leaves you free to extend another class. Especially useful for the Command pattern.
    Edited by: jduprez on May 16, 2011 2:08 PM

  • How to find out in program which all classes have implemented an interface

    Hello,
    I have created an interface and few classes are implementing the interface.
    I want to know in a program which all class have implemented the interface.
    Is it possible to find it out and how?
    Regards,
    Bikash.

    Hi Bikash,
    Read the Database view VSEOIMPLEM with where condition REFCLSNAME = Interface Name and version = 1.
    This would give you all the classes which have implemented the interface and are active...
    If you want to look at the values that the field version can have then see Type Group SEOC ans search for version....
    Hope this help...
    Regards,
    Sitakant

  • I am having macbook air recently my iphotos did not open and was showing report apple and reopen but i came to know that by pressing alt and iphotos i open an new photo library and stored the pics but now how can i get the pics which i had in the earlier

    i am having macbook air recently my iphotos did not open and was showing report apple and reopen but i came to know that by pressing alt and iphotos i open an new photo library and stored the pics but now how can i get the pics which i had in the earlier photo please help me to recover my photos

    Well I'll guess you're using iPhoto 11:
    Option 1
    Back Up and try rebuild the library: hold down the command and option (or alt) keys while launching iPhoto. Use the resulting dialogue to rebuild. Choose to Repair Database. If that doesn't help, then try again, this time using Rebuild Database.
    If that fails:
    Option 2
    Download iPhoto Library Manager and use its rebuild function. (In early versions of Library Manager it's the File -> Rebuild command. In later versions it's under the Library menu.)
    This will create an entirely new library. It will then copy (or try to) your photos and all the associated metadata and versions to this new Library, and arrange it as close as it can to what you had in the damaged Library. It does this based on information it finds in the iPhoto sharing mechanism - but that means that things not shared won't be there, so no slideshows, books or calendars, for instance - but it should get all your events, albums and keywords, faces and places back.
    Because this process creates an entirely new library and leaves your old one untouched, it is non-destructive, and if you're not happy with the results you can simply return to your old one.  
    Regards
    TD

  • How can I know which model of K9A2VM I have?

    I have a K9A2VM motherboard with an Athlon 64 x2 3600+ AM2 CPU. I would now like to upgrade to an AM3 Phenom II CPU with lots and lots of cores.
    However, I have a problem. I don't know if I have K9A2VM-FD or K9A2VM-FIH and I don't know how to find out. I've opened my box and looked at the card, but it only says K9A2VM. By reading the specs and looking at pictures, I know it has to be one of them, or at least that it is not K9A2VM-F V2 since it only has two RAM slots and I have four of them installed. There are other obvious differences too, which I can easily spot by looking at the picture.
    Now, looking at the CPU support page for -FD and -FIH, they seem to have differences in what CPUs they support:
    -FD at least supports an X6: http://www.msi.com/product/mb/K9A2VM-FD.html#/?div=CPUSupport
    Phenom II X6    Thuban    HDT90ZFBK6DGR    1090T    200    3.20    3M    6M    E0    125    7501v1B.zip
    But the -FIH CPU support page is different: http://www.msi.com/product/mb/K9A2VM-FIH.html#/?div=CPUSupport
    If I can use that processor, I'm really happy. But -FIH doesn't seem to support Phenom II at all. So provided that the information in the CPU support page is correct, it's fairly important to me to know which model I have. But in case nobody knows how I can distinguish between them; if I buy a Phenom II X6 CPU and it turns out that my motherboard doesn't support it; what is the worst thing that can happen? Will I break the CPU or motherboard, or will it simply not work, but the hardware will still be fine?
    Thanks.

    So this is a MS-7501 Version 1.0 card, in addition to being a K9A2VM. The entire web refers to it as "K9A2VM-FD / FHI". One will work, and the other will go up in smoke. And there is no easy way to know which is which. So how can I know? The reason I bought this card was so I could upgrade the CPU at a later time. Now it seems that's not possible, because the available information is so very poor. I've never had to gamble when purchasing hardware from other vendors. Is this common for MSI?

  • How can I know which clients are connected to my network through express and which are connected through extreme?

    I have an airport express extending, through wireless, a network provided by an airport extreme. How can I know which clients are connected to my network through express and which are connected through extreme?
    Here you can see both routers:
    I would expect to some clients connected to the express, other than the extreme. And that's all I see: only the airport extreme appears as client of the airport express.
    Below, one can see the summary of the config for both routers.
    Would somebody explain it?
    Thanks,
    Marcelo
    Message was edited by: Marcelão

    please disregard this answer.
    Message was edited by: Marcelão

  • How can I know which link was clicked in the link list

    Hi everyone
    I'm using list of links in my page to display list of the files in some directory.
    How can I know which link user was clicked. There are some code:
    <%
    String dir = "..//files//";
    File fin = new File(dir);
    File files[]=fin.listFiles();
    for(int i=0;i<files.length;i++)
    File x = files;
    %>
    <%=x.getName()%><br>
    <%
    %>
    Please help

    You need to pass some data on the querystring to the page you are linking to.
    <a href="Main_Work.jsp?file=<%=x.getName()%>"><%=x.getName()%></a><br>
    This will send a parameter called "file" with the value of the file name that the user clicked.
    Now in Main_Work.jsp you can access this data as follows:
    <%
    String s = request.getParameter("file");
    File f = new File("..//files//"+s);
    %>

  • How can I know in which Tables are the fields stored

    Hi,
    In transaction FSE3 Display Financial Version
    Statement Version, if I drilldown in details, I can
    see Item No, Chart of Acc, From Accountm To Account D,
    C.
    when I do a F1 on the fields, I can see that it is a
    structure. How can I know in which Tables are the
    fields store?

    Hi Ankit,
    There are no rules or guidelines for finding the table but i will share some of the tips used generally.........but i am not sure if we can do it for a tree structure..but try anyways....
    Double click on the structure name seen on the F1 pop up window...
    in the structure screen, try to analyse the field which is very important something like a key in that set of fields or do the same for the fields which we feel are more important,then click on the domain for that field....once in the domain..click on the "where used list for the domain" on the top...
    it will display a pop up -> select only "table" and then press "Tick/OK"..A list will be displayed with the data element and table name ..from this we need to find out the right one we need either by going for text of the table or going through each and every one
    It takes time but does the job.....
    Regards
    Byju

  • How can i know which version of Smartview is installed on my system ?

    Hi All,
    How can i know which version of Smartview is installed on my system ?

    Do you know what version of Essbase you are running? that could help. You can find that in EAS. Right click on the server name and select edit ptoperties, then look on the environment tab. As a final measure, find the smartview.exe on yout machine right click and select properties. in one of the tabs there might be a version number

  • How can i know which index will be used when executing the query ?

    1 ) I have query in which i have 3-4 tables but there multiple index on one column .
    so how can i know which index will be used when executing the query ?
    2) I have a query which ia taking too much time . how can i know which table is taking too much time ?
    3) Please Provide me some document of EXplain plan ?

    Hi Jimmy,
    Consider the below example
    /* Formatted on 2011/02/04 21:59 (Formatter Plus v4.8.8) */
    CREATE TABLE FIRST AS
    SELECT * FROM all_objects;
    UPDATE FIRST
    SET object_name = 'TEST'
    WHERE owner != 'SCOTT';
    CREATE INDEX idx_first ON FIRST(object_name);
    SELECT *
    FROM FIRST
    WHERE object_name = 'TEST';
    It has not used index
    Execution Plan
    Plan hash value: 2265626682
    | Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time |
    | 0 | SELECT STATEMENT | | 58678 | 7334K| 163 (4)| 00:00:02 |
    |* 1 | TABLE ACCESS FULL| FIRST | 58678 | 7334K| 163 (4)| 00:00:02 |
    /* Formatted on 2011/02/04 21:59 (Formatter Plus v4.8.8) */
    SELECT *
    FROM FIRST
    WHERE object_name = 'emp';
    This has used the index
    Execution Plan
    Plan hash value: 1184810458
    | Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time |
    | 0 | SELECT STATEMENT | | 1 | 128 | 1 (0)| 00:00:01 |
    | 1 | TABLE ACCESS BY INDEX ROWID| FIRST | 1 | 128 | 1 (0)| 00:00:01 |
    |* 2 | INDEX RANGE SCAN | IDX_FIRST | 1 | | 1 (0)| 00:00:01 |
    From this we can come to the conclusion that, whether to use one index or not by oracle
    would also depend on the data which is present in the table. This has to be this way as
    we see in the bind peeking, if oracle sticks to only one plan, say only use the full table
    scan, it would be a performance hit when it searches for the second query ie where object_name
    ='emp';
    2.
    If we have a query like below.
    select * from emp
    where upper(ename) = upper(:p_ename);
    Evenif we have the index on ename column, oracle wouldn't be able to use the index, as there is a function in the predicate column. If you need oracle to use the index, we need to create a function based index as below.
    Create index idx_ename on emp(upper(ename));
    Regards,
    Cool

Maybe you are looking for

  • GarageBand 08 not working on PowerPC

    Hi, I have a refurbished G4 iBook with PowerPC that I purchased online and GarageBand has never worked properly on my iBook. The OS is Leopard 10.5.8 and GarageBand is 4.1.2. I downloaded the 4.1.2 update and reinstalled it (already had it) just to c

  • Performance Tunning - Connect By and Outer Join Used - Urgent

    Hi, I have written a query with the outer join and connect by prior since to establish the parent child relation ship. All the tables having 2 lakhs record but the final result set is 20 thousand rows. The query is taking 5 minutes to complete the ex

  • Specify the output file path and print name when printing pages

    hi, how can i Specify the output pdf file path and print name when i am using the function PrintPagesSilent from AcroAVDoc Object. My Code :- Acrobat.AcroAVDoc doc = new Acrobat.AcroAVDoc();doc.Open(path, "temp");

  • Transactional data for SEM-BCS

    Dear experts! We are working in a SEM-BCS project and wonder which is the best solution to load data from FI-GL into BCS. As far as I know there are two possibilities to do this: .) extract form RFBILA00 and then use the flexible upload method .) loa

  • I cannot turn up the volume during a phone call

    My "+" button on the side of my phone is broken and I cannot turn up the volume during a phone call. Is there any other way to control the volume during phone calls?