What happens if the exception occurs in a thread when it has a lock

what happens if the exception occurs in a thread when it has a lock
on object. Is the lock released ?

Rastogha wrote:
ok so lock is released if we are putting code in try-catch block. . right ?
1) But suppose what abt runtime exceptions which i am not catching. It doesn't matter what kind of exception it is. The lock is released when control is transferred outside the sync block.
2)Also the thread will be suspended in both the cases or not ( both cases mean for runtime exception and checked exception)Again, the kind of exception doesn't matter. Whether you're in a sync block or not doesn't matter: When an exception occurs, control transfers to the nearest catch block that can handle it. If you don't provide a handler for it, the thread terminates.
If something is not clear, post code that shows the specific situations you're curious about. Make sure you use the CODE button or [code] and [/code] tags.

Similar Messages

  • What happens to the open item in bsid table when it is cleared

    hi experts,
                   i have a doubt about open and cleared items of accounting documents. as we know open items of customers are stored in bsid and cleared ones in bsad. For suupose, an open item is closed ina particular period then what happened to the entry in bsid and bsad table. an entry regarding is stored in bsad (cleared),and what happens to the entry in bsid, still it will be there or removed from it.

    Hi,
    When ever we clear the document(Complete payment) that document will be moved to BSAD table. Other wise it will remain in BSID.
    If u are making partial payment then all the partial payment documents along with original document will be stored in BSID till u made the complete payment for that invoice.
    Assumption is u have to give all partial payment documents made for particular invoice item while u are making complete payment in F-28 transaction. So that these partail payment documents will also be cleared while making complete payment and moved to BSAD table.
    This trasaction can be used for both partial and complete payments.
    Irrespective of complete or partial payments made all the documents will remain stored in BKPF and BSEG tables.
    BSID and BSAD are index tables to address performance issues with BKPF and BSEG tables.
    So all open and cleared documents will be there in BKPF and BSEG tables.
    All cleared documents will be there in BSAD table.
    Alll open documents will be there in BSID table.
    Hope it is clear.
    Thanks,
    Vinod.

  • HT1407 what happens if the light doesn't cut on when you put it on the charger?

    What happens if light light doesn't come on when you put it on the charger, but it works on the computer? What does that mean?

    Some basics please, what vintage is your MBP, have you plugged anything else into the wall socket to verify that it is live? which light doesn't turn on, the charger or the MBP?
    Hold the power button down for 15 seconds, wait for 2 then press it normally and see te MBP it turns on

  • What happened to the "IPhone 4s Preorder Update" thread that you just posted Jacob?

    It magically disappeared.

    For those who did not see the thread..
    It was pretty much saying that bby received a tremendous amount of iphone 4s orders and they are trying their best to fulfll the preorders. 
    He said preorders will be taken care of in the order they received.

  • What happened to the monster i5/i7 delivery thread?

    is it just me, or has that 181-page global delivery angst thread been aborted?

    strange....it disappeared for awhile & came back...dunno, probably my old mac bellyaching about the imminent arrival of my i7...

  • What happened to the icon "Stop loading this page", when I downloaded the newest version of Foxfire?

    In the previous edition of Foxfire, an arrow pointing clockwise was located near the 'back' - 'forward' button. This Stop Loading Page icon has disappeared. I liked that feature--it was helpful. How can I retrieve this feature?
    It's late. I'll check my email for the answer tomorrow (5-31-11).
    Thank you.
    Yogurtjan

    You either have to buy iPhoto again, or sign in with your old Apple ID.

  • What happened to the Jukebox feature in iTunes??

    Please Please Please bring back the jukebox functionality!

    What happened to the Jukebox feature in iTunes??
    It has been replaced by a similar but better capability known as "Up Next." 
    See this guide:
    iTunes 11 for Windows: Ways to play songs

  • On Lightroom 2.5 - What happened to the Softness Brush?

    What happened to the Softness Brush on 2.5?

    I got these instructions from others;
    If you open the Preset Tab of Preferences, you should see a button near the
    bottom that says Restore Local Adjustment Presets. Try clicking  that.  
    OR,
    Installing 2.5 should not affect your presets. I still have mine. That 
    said, Soften Skin is simply a preset that comes installed by default. 
    The settings are:
    Clarity = -100
    Sharpness = 25
    Everything else  set to 0
    If you have presets that are not showing you can check Edit > 
    Preferences > Presets and see if Store Presets with Catalog is checked. 
    If it is, uncheck and restart Lightroom to see if that brings them back. 
    Otherwise you can just create a new preset with the above  settings.
    In a message dated 9/18/2009 5:05:34 P.M. Eastern Daylight Time, 
    [email protected] writes:
    Thanks  for the note, but what occurred that resolved this for you? 
    Anita-
    You may be better off with a new  subject/thread.

  • What happened to the new releases alphabetical list?

    What happened to the new releases alphabetical list? You used to get a list sorted by date when you click ALL in new releases. Now, they only list "featured" new releases with pictures of the artwork. Is there still a way to see the alphabetical list by release date.

    yes - i have the latest version; and the change to their new releases occured over a month ago. A couple weeks ago, the old format returned briefly.
    Does anyone from Itunes review the forum? I would buy a lot more tracks if i was able to see all that are available.

  • RI - What if Parent is refreshed - What happens to the constraints

    Hello
    I have a parent-child scenario. What happens if the parent table is completely refreshed? What happens to the child table (that has cascade delete)?
    If RI exists, will a complete refresh of parent be possible?
    What is the best way to handle this scenario?
    Thx!

    One of the quickest ways of identifying duplicate records in a table is to enable a unique (or primary key) constraint knowing ahead of time that it will choke on the duplicates, but using the EXCEPTIONS INTO EXCEPTIONS clause which will cause the rowids of the duplicates to be written into an EXCEPTIONS table (created ahead of time with the rdbms\admin\utlexcpt.sql script, for example).
    Therefore, imagine a million row table into which a fresh bulk load of another million rows from some external source is to be performed.
    You declare the constraint, you disable it, you perform the load, you enable it exceptions into exceptions. You now can clear out the duplicate data quite easily, and then enable the constraint normally. Next load, you disable the constraint all over again and repeat the process.
    That's one reason you might want to repeatedly disable/enable a constraint.
    Consider another: a unique or primary key constraint, by default, when created, will cause a unique index to be created on the table. Doing any sort of bulk load into a table, even of data you know to be 'clean' of duplicates, will be a lot slower as a result of each insert having to update the index. Therefore, one of the things you commonly do to speed up bulk loads is to disable constraints, therefore removing any associated unique indexes, and therefore saving the time that would normally be spent validating data and updating indexes.
    In the old days before they invented deferrable constraints, too, you might well be engaged in a complex data loading process that involves quite a few steps before finishing. If looked at during those steps, you'd say the data violated constraints... but if you just let me get to the end, you'll find that the data all comes good. So you had to be able to disable constraint checking at the start of the process, and re-enable it at the end. A good example of that is Scott's EMP table: it has a manager column and the data in that column refers to the EMPNO column. A manager has to be an employee, after all! So there's a self-referencing foreign key on that MGR column, which means you can't load a record containing a manager number that isn't already an employee. But if you were doing a bulk load of data into that table, starting with it completely empty, that would mean you'd never be able to load any data into it at all: no employees exist to begin with, so there are no managers, so the first employee record that mentions a manager gets rejected. But if only you'd let me do the initial load of data, you'd see that every manager mentioned DOES turn out to be an employee! At the end of the load, it all comes good, and everything is properly related to everything else.
    Short of being very careful about the order in which you load such data (presumably, you'd have to start with Mr King, who runs the company, then deal with the first lot of managers, and then you could load the clerks and salesmen), the simplest way of resolving that sort of Catch-22 is to disable the constraint, do the load, and then enable the constraint when all the data is in place and therefore all the relationships between records have come good.
    (As I say, since version 8.0 of Oracle, you can also defer the constraint so that it only gets checked at the point you commit all the data, but leaving that subtlety aside, it's still a classic example of where switching constraint checking on and off proves very useful).

  • What happened to the Bionic

    What happened to the Motorola Droid Bionic. Its no longer sold on the website new or recertified. Was thinking about ditching my Droid Charge for one. Was it that bad of a phone or whats the deal?

    they are still selling the droid x2 and droid pro, the samsung charge, and some other phones that have been out on the market longer. seems like the bionic has just been thrown away like windows vista was.
    I had an x2 at one point and loved it except my home security system wouldnt work with it so i got the charge but would rather find a better motorola and the razr is still too pricey so i wanna know what people opinions are on the Bionic

  • What happened to the 'get all' podcast option?

    what happened to the 'get all' podcast option?

    It's disappeared!
    I don't mean to be flippant, but I couldn't think of a more appropriate opening response.
    I've had this happen to me in the past, and it has just re-occurred with the latest iTunes update. The solution is to download iTunes again (don't remove or delete your existing iTunes) and then start the installation procedure. One of the two options you see should be a Repair option. Use that and all will be well again.
    Your post prompted me to repair my iTunes (for just that reason) and while it was running, I noticed a very brief message about "Get Podcast", in other words,it was the repair being applied. The procedure only took a few minutes and I didn't need to close other programmes or re-start my computer.
    By the way, I like your user ID, are you intending that your first born becomes ;adxcjghvldxkjfghbv ll?   
    Message was edited by: the fiend

  • What happens to the mail in my iMac after I delete it from my iPhone? Will it be deleted from my computer as well?

    What happens to the mail in my iMac after I delete it from my iPhone? Will it be deleted from my computer as well?

    If they are both using the same iCloud ID (assuming you are running your mail from iCloud), then yes, the email will disappear from your Mac after you delete it from your phone and after your phone sycs with iCloud and your Mac syncs with iCloud.
    I use a windows phone, but it works the same.

  • Just upgraded to 5 from 3 - what happened to the page select icon? Can't find it in customize toolbars.

    Used to be you could select which page you wished to go back or forward to from the arrow icons on the navigation toolbar. The history menu item only shows 10 sites without having to open history for today. What happened? Is there another icon or a new plug in for this functionality? I used it all the time.

    ''what happened to the page select icon (Back/Forward)''
    The back/forward buttons have been moved to right-hand side of the navigation bar and the drop-down was removed. User right-click or hold click for one second to see the tab history. This is item #5 in my list.
    The History menu also has "Open Previous session" and "Open closed windows",
    to see more history use the History sidebar ("Ctrl+H") or the History Library List ("Ctrl+Shift+H") and sort or view by "Last visited".
    You can make '''Firefox 5.0.1''' look like Firefox 3.6.19, see numbered items 1-10 in the following topic [http://dmcritchie.mvps.org/firefox/firefox-problems.htm#fx4interface Fix Firefox 4.0 toolbar user interface, problems (Make Firefox 5.0.1, or 4.0.1, look like 3.6.*)]. ''Whether or not you make changes, you should be aware of what has changed and what you have to do to use changed or missing features.''
    * http://dmcritchie.mvps.org/firefox/firefox-problems.htm#fx4interface

  • E4X: What happens to the root element?

    I'm working with XML using the E4X notation. I'm used to the "old school" XML APIs that use DOM and I'm a bit confused.
    For example, let's consider the following XML
    <mx:XML id="myXML" >
      <top>
        <sub1 id="uno">
          <sub2>hello</sub2>
          <sub3>world</sub3>
        </sub1>
        <sub1 id="duo">
          <sub2>ok</sub2>
          <sub3>ko</sub3>
        </sub1>
      </top>
    </mx:XML>
    In my code I use the following traces. This is done with the De MonsterDebugger, but all others should work the same way. I have casted the traces to String only to make it easier to ask this question (no need post images)
    MonsterDebugger.trace(this, "myXML:" + myXML);
    MonsterDebugger.trace(this, "myXML.sub1: " + myXML.sub1);
    MonsterDebugger.trace(this, "myXML.sub1.sub2: " + myXML.sub1.sub2);
    What I get as output is
    (String) = myXML:<top>
      <sub1 id="uno">
        <sub2>hello</sub2>
        <sub3>world</sub3>
      </sub1>
      <sub1 id="duo">
        <sub2>ok</sub2>
        <sub3>ko</sub3>
      </sub1>
    </top>
    (String) = myXML.sub1: <sub1 id="uno">
      <sub2>hello</sub2>
      <sub3>world</sub3>
    </sub1>
    <sub1 id="duo">
      <sub2>ok</sub2>
      <sub3>ko</sub3>
    </sub1>
    (String) = myXML.sub1.sub2: <sub2>hello</sub2>
    <sub2>ok</sub2>
    All is fine above and this was a bit long abstract for my question. The question is what happens to the root element, in this case <top>? I was trying to access the data with the following notation
    myXML.top.sub1; // etc
    I spent quite a lot of time trying to get it to work, until I discovered that the root element is not used. Can anyone explain this?
    Or, I guess the simple explanation is that the root node is ignored and the sub nodes are created as properties of the object. The question also could be stated as: Why isn't this documented in the Flex API Reference?
    Thanks.
    P.S. I found this article on common E4X pitfalls which also has other interesting topics when working with E4X.

    its gone
    downgrading would kill the phone..

Maybe you are looking for

  • HT1420 Somebody made an audible iTunes account of my iphone 3gs and its was save on his Laptop,

    Somebody made an audible iTunes account of my itunes and its was save on his Laptop, when I tried to de authorised his laptop it won't let me do it.. iTunes is asking me about my username and password of my audible account.. But as far as I know I do

  • Function "DDIF_NAMETAB_GET"

    Hi, I am reading a database table's attributed using DDIF_NAMETAB_GET function. My code is: DATA: IO_TABLE_NAME TYPE tabname,   it_dfies TYPE TABLE OF dfies,   is_dfies TYPE dfies. DATA: is_x030l  TYPE x030l. *IO_TABLE_NAME is getting from user CALL

  • Roles in Solar02

    Hi! In Solar02 transaction, under column ' type' I see a object name ' rolle'(roles). Has anyone used this feature? Does it help in building security roles and profiles. Thanks. Mike

  • Need to send HTML table via email

    Hi Experts, I am using the FM EFG_GEN_SEND_EMAIL to send email but unable to send html content through this. I know I could use SO_SEND_OBJECT FM too which automatically sends the email in HTML format but it doesn't have from option(FROM EMAIL ID) I

  • Audio alone line-out good...Audio w/video line-out weak

    Trying my new 5th gen iPod today on my home audio system. Using a 3mm miniplug to the line-out on the Universal Dock, audio by itself is very good, bumping the LCDs on my old Sansui equalizer all over the place. Using the same connection and playing