Do lock and unlock support nesting?

I can't find any information on this (probably important enough for the documentation to have), but do lock() and unlock() implement lock nesting depth on whatever lease granularity you have (thread or member), e.g.,
lock( X )
lock( X )
unlock( X )
(X is still locked here, because we locked it twice previously in the same thread)
unlock( X )
(X is finally unlocked?)
or do I need to keep track of this myself?

Nested locking is minimally supported. You can do multiple locks but the first unlock totally unlocks and subsequent unlocks are nops.
Check out the description of lease-granularity in:
http://wiki.tangosol.com/display/COH34UG/distributed-scheme
and ExplicitLocking in:
http://wiki.tangosol.com/display/COH34UG/Implement+Transactions%2C+Locks%2C+and+Concurrency
-David

Similar Messages

  • Locking and unlocking mass users

    Hello
    How can we lock and unlock mass users?
    Edited by: Mohammed Siddiqui on Jul 16, 2008 2:37 PM

    Hi Siddique,
    Follow the below link
    Re: locking users while implementing support packs
    Regards
    Zam

  • Is there a solution to open the network locked iphone 6 Ali Sprint I've purchased iphone 6 from ebay and upon arrival I have to drag the device is locked and not supporting the network in Saudi Arabia

    Is there a solution to open the network locked iphone 6 Ali Sprint
    I've purchased iphone 6 from ebay and upon arrival I have to drag the device is locked and not supporting the network in Saudi Arabia

    There is no solution other than to contact Sprint and ask them if they will unlock it.

  • HT1430 The locked and unlocked button is not working very effectively.

    The locked and unlocked button is not working very effectively.

    Try:
    http://snapguide.com/guides/calibrate-your-home-button/?utm_expid=69945963-15
    fix for Home button
    iPhone Home Button Not Working or Unresponsive? Try This Fix
    - you can turn on Assistive Touch it add the Home and other buttons to the iPods screen. Settings>General>Accessibility>Assistive Touch
    - If not under warranty Apple will exchange your iPod for a refurbished one for:
    Apple - Support - iPod - Repair pricing
    You can do it an an Apple store by:
    Apple Retail Store - Genius Bar
    or sent it in to Apple. See:
    Apple - Support - iPod - Service FAQ
    - There are third-party places like the following that will repair the Home button. Google for more.
      iPhone Repair, Service & Parts: iPod Touch, iPad, MacBook Pro Screens

  • What is BPMN Lock and Unlock?

    Hi,
    I tried to get some help on BPMN lock and unlock to understand if this can be used for check out and checkin model for version controlling.
    Can any one please clarify?
    regards,

    Hi,
    Implicit version control is not supported in the current release, but it will be supported in Release 11 (upcoming release).
    In 10.1.3.4 the model gets locked while editing (user A). If user B wants to open the same model he can have only read access to it. Therefore different versions of processes have to be maintained in an external source control system (for now). In this context it might be helpful for you to investigate the XML-Import/Export functionality combined with an external CVS.
    Additionally, models and databases can be manually released and versioned in ARIS using the appropriate attributes (as per project conventions). Please have a look to my post at Re: Control Version and see if it helps to get some ideas for your requirements.
    Best regards,
    Danilo.

  • How do i use the "Alt+Ctrl+;" keyboard shortcut to Lock and Unlock Guides in Adobe Illustrator?

    Hello,
    I've been trying to lock my guides in Illustrator CS5 with the default keyboard shortcut "Alt+Ctrl+;", but with no result.
    When i edit this shortcut via the 'Edit/Keyboard Shortcuts...' menu, and type in the same keystroke combination for that command - so again "Alt+Ctrl+;" for "Lock Guides' - the shortcut changes from "Alt+Ctrl+;" into "Alt+Ctrl+."
    This new "Alt+Ctrl+." shortcut is usable. Now the same 3 different keystrokes tabbed at the same time do lock and unlock the guides, but i'm left wondering why it is that i can't use the "Alt+Ctrl+;" combination.
    There now also seems to be no way around changing the new combination into the old one again.
    I hope someone can help.
    Thanks in advance,
    Johan

    Thanks Jacob. I can't seem to find a solution to my problem within the site you linked, but i'm still happy with it. Seems to be a great resource for answers.

  • File Lock - How to lock and unlock a file ? Can we do that for an FTP File?

    Hi All,
    I like to retrieve a file from the FTP server using Apache Commons Net libraries.
    for example if the file size is 20MB. When the file is in the progress of copying or transferring from the FTP server i need to lock the local file which is in our local directory so that no other process will use the same local file which is in the process of copying otherwise partially copied files will be used by another process.
    the file should be locked when it was in the progress of copying from the server. I have an automatic process which will access file objects at certain time and try to process the files.
    I like to know the simplest and easiest way to lock and unlock a file object locally which is trying to copy a file from the FTP server which is of huge size.
    And also i like to know how to lock and unlock a file in general?
    Thanks,
    J.Kathir

    we can set it read only only when it complete finishing the writing.
    can we able to make the file as read-only while transferring data to file.
    How to achieve it ? pls give me some sample code

  • Statement for Lock and Unlock an Oracle user (Urgent)

    Hi DBAs.
    I just want to know about the statement used for lock and unlock the Oracle user thru sysdba suer.
    Thanks
    Hassan

    Hey,
    SQL> alter user <USERNAME> account lock;
    and
    SQL> alter user <USERNAME> account unlock;
    Cheers,
    Marcello M.
    Sorry Justin, same answer........
    Message was edited by:
    Marcello M.

  • Why does auto brightness has a bug in iOS 7.1.1 . The brightness switches automatically to higher in bright places but not returns to lower brightness in dark places but when you lock and unlock it becomes normal

    Why does auto brightness has a bug in iOS 7.1.1 . The brightness switches automatically to higher in bright places but not returns to lower brightness in dark places but when you lock and unlock it becomes normal

    Hello,
    Same problem for me. Really a pain in the *** this bug ! Does Apple fixed it. I'm really suprised noone reports this problem  and apple does not adress this.
    Because of that, I cannot give it anymore to children because it hurts the view. Really a shame on the part of apple !
    Regards

  • Hi how to handel the lock and unlock the table

    Hi,
    i am having the one scenario like,for lock and unlock the table i used the function modules ENQUEUE_E_TABLE and  DEQUEUE_E_TABLE but it allowing the edit the first user and suppose to try the editing the second user it is giving the error message it correct but again the second user press any button it is leaving the program it should not happened please help me that.
    regards,
    Hari.

    Hi,
    i assume it's in table JEST
    so select:
      SELECT        * FROM  JEST
               WHERE  OBJNR  =  aufk-OBJNR
                AND   STAT   IN S_STATI
    Andreas

  • Capability or admingroup to lock and unlock views

    Hi all,
    I am trying to lock and unlock users via
    lockObject(com.waveset.object.Type.USER, user, map); on a lighthouse session object and unlockObject((Object) com.waveset.object.Type.USER, user, map); on a session object
    but I get the error:
    WavesetException : com.waveset.util.WSAuthorizationException: View access denied to Subject AGROUPE1 on User: UTEST1.I tried to create an admingroup with this permission
      <Permissions>
        <Permission type='User' rights='View'/>
      </Permissions>But it didn't change the error.
    Any idea so that it could work ?

    You Can disable that functionality by disabling "Action Keys Mode" in the BIOS...
    Here is the document, that will help you with it... http://h10025.www1.hp.com/ewfrf/wc/document?docname=c02035108&cc=us&dlc=en&lc=en&jumpid=reg_R1002_US
    Although I am an HP employee, I am speaking for myself and not for HP.
    Make it easier for other people to find solutions, by marking my answer with 'Accept as Solution', if it solves your problem.
    Click on the BLUE KUDOS button on the left to say "Thanks"

  • Is it possible to lock and unlock a transaction?

    Hi SDN,
    Is it possible to lock and unlock a standard transaction( for eg VA02 ) through my program?( i am creating a customized version of standard transaction ) I want to lock the transaction for my user-id and then i will update the values in that transaction and finally i will unlock it.
    I got the FM for locking at the database level.is there is any FM to lock and unlock the transaction?

    Hi,
    It may not be the best way, but maybe you could use the functionality behind transaction code SM01. Here you can lock/unlock the transaction code. If you look at the program, all it is really doing is updating table TSTC field CINFO. CINFO = 80 when unlocked, CINFO = A0 when locked. You could just update the field accordingly and then call this function module right after.
    * For locking
    CALL FUNCTION 'RSAU_WRITE_SM01_LOG'
      EXPORTING
        TCODE = TSTC-TCODE
        LOCK = 'X'.
    * For unlocking
    CALL FUNCTION 'RSAU_WRITE_SM01_LOG'
      EXPORTING
        TCODE = TSTC-TCODE
        UNLOCK = 'X'.
    Regards,
    Ferry Lianto

  • Need to Lock and unlock the fn key freely

    I just today purchased the HP g72-b66us notebook.  An MMO that I play uses the f # keys at the top of the keyboard for integral aspects of the game on a regular basis.  Thus far I have had to hold the fn key down and that hampers gameplay ability drasticly.  I'd like to be able to lock and unlock the fn key the same way one uses the number lock or caps lock.  Please advise.

    You Can disable that functionality by disabling "Action Keys Mode" in the BIOS...
    Here is the document, that will help you with it... http://h10025.www1.hp.com/ewfrf/wc/document?docname=c02035108&cc=us&dlc=en&lc=en&jumpid=reg_R1002_US
    Although I am an HP employee, I am speaking for myself and not for HP.
    Make it easier for other people to find solutions, by marking my answer with 'Accept as Solution', if it solves your problem.
    Click on the BLUE KUDOS button on the left to say "Thanks"

  • FM to Lock and Unlock the Tcode CJ02

    Hi,
    I want to lock and unlock the Tcode CJ02, my code is as below.When I am executing the Report, I am able to create the Settlement Rule in first Row but I am getting an Error Mesage saying " Subproject 4-0123-02-01-01-10-01 is currently processed by USER" though there is no other session open under the user name when trying to create settlement rule in second row in the loop. Wbs element that ima using for creation of settlement rules is "4-0123-02-01-01-10-01".
    loop at it_src into wa_src.
    Lock the Tcode 'CJ02'.
    Perform BDC Recording to Create Settlement Rule.
    Unlock the Tcode 'CJ02'.
    endloop.
    Regards,
    Deepthi.

    Hi, you can block the Subproject with Lock Object, you can create this under SE11
    after you have created this, use these FM for Enqueue/Dequeue,
      call function 'ENQUEUE_EZ_ODAPROF_PO'
           exporting
                mode_ztma_odaprof_po = 'E'
                mandt                = sy-mandt
                ebeln                = cod_oda
                ebelp                = cod_pos
           exceptions
                foreign_lock         = 1
                system_failure       = 2
                others               = 3.
      call function 'DEQUEUE_EZ_ODAPROF_PO'
       exporting
         mode_ztma_odaprof_po       = 'E'
         mandt                      = sy-mandt
         ebeln                      = cod_oda
         ebelp                      = cod_pos

  • Keyboard lock and unlock for 8330

    I need a way to lock and unlock the keyboard.  I have searched a number of websites for an answer to my dilema and it seems several methods are mentioned but none work for me.  I need to lock the keyboard when phone is in my pocket.  Many thanks to anyone who can help.

    Well, according to your device manual, this is the procedure:
    Lock the keyboard
    If you do not set a BlackBerry® device password, you can lock your keyboard to avoid making calls and pressing keys accidentally.
    On the Home screen or in the application list, click Keyboard Lock.
    To unlock the keyboard, press the asterisk (*) key and the Send key.
    You can look further into your manual here:
    http://www.blackberry.com/btsc/microsites/search.do?cmd=displayKC&docType=kc&externalId=http--docsbl...
    Good luck.
    Occam's Razor nearly always applies when troubleshooting technology issues!
    If anyone has been helpful to you, please show your appreciation by clicking the button inside of their post. Please click here and read, along with the threads to which it links, for helpful information to guide you as you proceed. I always recommend that you treat your BlackBerry like any other computing device, including using a regular backup schedule...click here for an article with instructions.
    Join our BBM Channels
    BSCF General Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

Maybe you are looking for