Do you have some tips on deadlock avoidence for TDS?

Hi All,
I developed a small BBS(multi-threaded web app) using BDB as backend database, providing view/post/update messages which will accordingly invoke operations on databases like forum.db/thread.db/post.db in one thread, however, I find a tip as follows in BDB document to Avoid Blocks
Reduce the length of time your application holds locks
does it mean I should do (in one thread)
start transaction
update forum.db
end transaction
start transaction
update thread.db
end transaction
start transaction
update post.db
end transaction
instead of
start transaction
update forum.db
update thread.db
update post.db
end transaction
do I understand that?

Hi, thanks for your quick response.
Maybe there are many threads at the same time, not only one. In such situation, should I make transaction granularity smaller? like
start transaction
update forum.db
end transaction
start transaction
update thread.db
end transaction
start transaction
update post.db
end transaction
this will comply with that rule, Reduce the length of time your application holds locks? can make possibility of deadlock as low as possible?
Another, I can make sure the access order.

Similar Messages

  • The battery for my Macbook Pro 13 "has only 121 cycles and is not charging anymore, my Mac is telling me that it is necessary to exchange it. You have any tips for me to find out what might be happening with my battery?

    The battery for my Macbook Pro 13 "has only 121 cycles and is not charging anymore, my Mac is telling me that it is necessary to exchange it. You have any tips for me to find out what might be happening with my battery?

    Guys, i am actually trying using a solution provided by the article shared by dominic23,
    It says "Another option is to get an ionizer to help the atmosphere in the workplace be more conductive and pull charges away from contact surfaces, including yourself."
    So in my home, we have such device that could clean the air using ion, and i am using it in my room...
    Result: BANG!!! The electric shock on my macbook has gone!! I don't really care about physics but somehow it works! You guys should give it a try.
    Thanks again dominic23

  • Periodic Message: You have some checked-out files in the working directory

    Hi,
    we are recieving a periodic message (appearing every 5 minutes) saying:
    "You have some checked-out files in the working directory. We recommend that you check in the files after editing. Click here to checkin the files.
    After clicking on the message easyDMS is opened and Private- & Public-Folder are shown.
    There are no checked out files on the client.
    What happened?
    Thanks a lot!
    Edited by: B Lobascio on Feb 8, 2011 5:13 PM

    After changing the Working directory in easyDMS preferences the message did not apear anymore.
    That means that there have been some some damaged documents in origin working directory.
    Edited by: B Lobascio on Feb 16, 2011 10:35 AM

  • I have just got an iPad and I want the music to be transferred through my iPod touch using iCloud but I didn't get the music from iTunes so I don't think it will let me do it. Do you have any tips that could help me?

    I have just got an iPad and I want the music to be transferred through my iPod touch using iCloud but I didn't get the music from iTunes so I don't think it will let me do it. Do you have any tips that could help me?

    Only photos taken with the iPad, copied onto it via the camera connection kit, or saved from emails/websites etc can be deleted directly on the iPad - either via the trashcan icon in the top right corner if viewing the photo in full screen, or via the icon of the box with the arrow coming out of it in thumbnail view.
    Photos that were synced from a computer are deleted by moving/removing/de-selecting them from where they were synced from and then re-syncing. If you want to remove them all then normally you could just sync an empty folder (in terms of photos) to the iPad, but as you don't want to sync at the moment you can't do that.
    You can reset the iPad back to factory settings and start from scratch with it : Settings > General > Reset > Erase All Content And Settings

  • My ipad will not let me slide to log in, or power off. i have tried to hold down the sleep and home button at the same time, but that did not work. Do you have any tips for me? Thanks

    my ipad will not let me slide to log in, or power off. I have tried to hold down the sleep and home button at the same time, but that did not work. D o you have any tips for me? Thanks.

    recovery mode
    open itunes on computer
    plug cable into computer not iOS device
    turn phone off
    hold home button and plug cable into phone.  do not release home button until an itunes graphic appears on device.
    look to computer should have message about recovery mode click ok and restore
    Peace, Clyde
    if u need an article see
    http://support.apple.com/kb/HT1808

  • I forget my password for openning my iMac. Do you have some adevice for me?

    i forget my password for openning my iMac. Do you have some adevice for me?

    The following link may help.
    Mac 101: Reset your Mac OS X password | TUAW - The Unofficial Apple Weblog
    Or the following link is to an esteemed contributor, Linc Davis, who was replying to a similar question in these columns.    A touch more complex but it will solve your problem.
    I have forgotten my password in order...: Apple Support Communities

  • IOS 7 ...  do you have some problems ?

    iOS 7 ...  do you have some problems ?
    my iPhone and iPad can't stop to reset 

    Why are you posting about the private developer only release of iOS 7 on this public forum? If you are a developer, you have signed a non-disclosure agreement not to discuss iOS 7 publicly. Go to the private developer forums and post there.
    If you're not a developer and have pirated iOS 7 then that's your own fault. iOS 7 is not ready for public use yet.

  • Do you have some useful  source codes ???

    I find many J2ME programs from various websites.
    But I cannot find source code of them.
    I want to get them because I'm doing project about J2ME Programming.
    If you have some useful sourcecodes such as utility: calendar&time, money, horoscope, calculator
    Please post here
    or Send me at [email protected]

    Hi Golftel,
    Its pretty strange that u r working with Java and worried about source codes. There are plenty of codes available around the internet.
    However if u want to see the source codes of the applications u have downloaded, do one thing, unzip the jar to ur hdd and the use any decompiler to decompile the class files and make the project using the java files generated there by.
    If the files are obfuscated (as hopefully they will be), u have to make bit reverse engineering otherwise use any debugger (I recommend using Netbeans) and debug the application.
    Cheers,
    SD

  • I bought an Apple TV and used its yesterdary all the day...when I rented a film, its spend about 4 hours to charge... I think it isn't normal... Did Apple had some problem in their network yesterday? Do you have some clue to me? Tks and Rgds

    I bought an Apple TV and used its yesterdary all the day...when I rented a film, its spend about 4 hours to charge... I think it isn't normal... Did Apple had some problem in their network yesterday? Do you have some clue to me? Tks and Rgds

    Download time is mostly related to your internet connection speed.  Beside, there's no need to wait for the entire movie to download before you start watching it; only some buffer needs to be downloaded.  When the buffer is filled, you should get a message that your rented movie can now be watched which usually happen within a minute of the purchase on standard cable connection.

  • With Panorama/TabCandy, when you have some "App Tabs" isolated into a group then open a normal tabs included into antoher group. Clicking on an "App Tab" makes the normal tabs disappear.

    With Panorama/TabCandy, when you have some "App Tabs" isolated into a group then open a normal tabs included into antoher group. Clicking on an "App Tab" on the navigation bar makes the normal tabs disappear from this bar.

    Panorama/TabCandy is in an early stage of development and has many open bug reports. One area that is being discussed is how App Tabs should be integrated into TabCandy, not surprisingly there are varying opinions.

  • Can you have a pdf as an icon for single click access on ipad or iphone?

    can you have a pdf as an icon for single click access on ipad or iphone?

    No - I think Safari is the only app that can have separate shortcuts (for different sites) on the homescreens. You can only access PDFs by first going into it's owning app.

  • I am a small service company and we use the iphone 4 do you have a program we can use for scheduling one one computer that has all the schedules of our service techs so we can change appointments and track

    I run a small service company and we use the iphone 4, do you have a program we can use for scheduling from one or two computers that allows us to schedule service calls and track our service techs.
    A program we can enter each phone and have there schedule and current location available at all times.

    Search the iTunes App store or find a developer to create an app that meets your needs.

  • You have not defined CO account assignment for an account that is relevant

    Hi All,
    While psoting the billing doc to accounting it is giving error as:
    You have not defined CO account assignment for an account that is relevant to cost accounting.
    Please let us know about error and which team and where we configure that?

    Hello ,
    one of the G/L accounts for which you have specified in revenue accoutn determination (T code -VKOA) has a setting which requires assignment ot a CO object.
    check for the g/accounts detremined, goto FS00 enter the g/l account and the company code
    Click on the Edit cost element tab. chcek the entries there, if ther is a entry it means cost assignemtn is reuqired
    check with the FICo consultant , if this is really requried and what is the object desired.
    based on that , you can have the object , if it si related to sales order then WBS element, internal order etc can be input
    Hope This helps
    Thanks
    akasha

  • I update my exchange server 2013 cu6 with exchange 2007 and my exchange 2013 db shutdown every 25 minute and recover. You have any hotfix I can use for this solution.

    I update my exchange server 2013 cu6 with exchange 2007 and my exchange 2013 db shutdown every 25 minute and recover. You have any hotfix I can use for this solution.

    Hi,
    From your description, you have deployed Microsoft Exchange Server 2013 and Microsoft Exchange Server 2007 in a co-existence environment. After you upgrade to CU6, databases unexpectedly shut down. In your case, here is a kb for your reference.
    Exchange Server 2013 databases unexpectedly fail over in a co-existence environment with Exchange Server 2007
    http://support2.microsoft.com/kb/2997209
    Hope this can be helpful to you.
    Best regards,
    Amy Wang
    TechNet Community Support

  • You have exceeded the maximum [1] connections for this session.

    Hi Experts,
    BIEE Version:11.1.1.6
    ESSBASE Version: 11.1.2.1
    Below the following path, I have found the log file which the error message, but I do not know why it is and how to solve this problem. 'BIEE_HOME\instances\instance1\diagnostics\logs\OracleBIServerComponent\coreapplication_obis1\console~coreapplication_obis1~1.log'
    Error Message:
    [Fri May 10 00:50:02 2013]Local////Error(1030006)
    You have exceeded the maximum [1] connections for this session.
    Are you facing the same problem? If you have any suggestions, please tell me, thanks.

    This is an old issue. Read Doc ID 749386.1 on MOS. The suggested fixes are as follows:
    1. The maximum number of connections that are allowed per Port is 250. There is a 250 connection limit per port. Please use a different user ID and desktop as the workaround, so this way a different port can be used.
    2. If using a different user ID and desktop is not feasible, increase the value of the maxlogins parameter as indicated below:
    Increase the maxlogins in the Essbase.cfg file to 5000, and restart Essbase.
    Note: Make sure that there are no sessions active within the EAS console before restarting the Essbase services.

Maybe you are looking for

  • Simply says "cannot install on this computer" when installing on my g4

    help! i went through all the steps and just before installing, it says "cannot install on this computer" with no error code, no other buttons, and no way to resolve the problem. i'm installing on a g4. please help!

  • Programmable infrared (IrDA) sender and receiver for iPhone

    Hello, I want to communicate with the iPhone and a device which only supports infrared for communication, so I'm searching for a programmable infrared IrDA sender and receiver for the iPhone. It should be possible to communicate with the recommended

  • "This Word document may look different"

    Virtually every time I open a Word document in Pages (version 5.2) I get a box saying: "This Word document may look different. Here's a list of what changed when you opened it in Pages." That line is followed by something like "The font Calibri isn't

  • Number is converted to other format when download it to Excel

    Hi All, When I use method cl_gui_frontend_services=>gui_download to download an excel tab delimited file, the asset number 220200000003 is converted to 2.202E+11 when open it in Excel. How to prevent this conversion? Cheers, Catherine

  • Clear cached email addresses from an iphone

    Has a solution been found which will allow clearing the cached email address entries on an iproduct? Deleting contacts, addresses and rebooting the device doesn't work. Restoring the device should not be the only solution as many business users don't