Why the latches is if the mutex are better?

Hi all

I'm trying to understand the mutex and latches, also searched the forum and read other messages.

My question is, almost in each paper said: mutex are faster, less false assertion, less size etc... also are locking latches a block of memory, but each object has its own mutex.

two of them are nice locking mechanism, which is OK but if the mutex are better why latches are exist? What is advantages of locks?

Mustafa KALAYCI says:
Aman,

I'm really starting to feel like a fool. each different answer changing my understanding of locks and mutexes.

Isn't fun?

When started this topic, I thought that the clasp and mutexes are both a locking mechanism that during a process of reading in or by writing to something a piece of memory, process locked this field and make it's own, it's lock is a lock, or mutex (it is also very close to description of University oracle performance tuning training manuals).

In this book, its very clearly explained that latches may present a statement false . For example, when you see a Cache library top 5 events, you should interpret, this is a good thing or a bad thing? Without access to it, you can't search for the library Cache hash strings and cannot come to know that the slider required on your part is there or not? That means, until the moment that you do not have the hand on Library Cache, the decision to go for a hard or soft analysis is not possible and that is waiting for the library Cache lock, is of no real use at all. This is a false assertion and Mutex can help minimize this. Good read this page completely and with a little more attention and you need to understand.

then I started to know the difference between the lock and the mutex. at first, I thought that HLDAA and mutex concepts belong to the oracle database, but I realized I was wrong. It is a technique of joint programming for shared resources.

This isn't a concept of programming but the mechanism for the protection of the integrity of the structures of memory.

I'm not sure that the lock concept is nowhere else or not in addition to oracle. But the notion of Mutex is already there in the operating system concepts.
http://en.Wikipedia.org/wiki/Mutual_exclusion

documents almost I read told me that mutex are just better and I'm just curious, if mutexes are better, why are locks used.

I mentioned several times the answer to this, the concept of lock is a proven concept and is around for many years in oracle. Simply because the Mutex is better, this does not mean that Oracle, the next day, everything would change and will begin to deploy the mutex. You realize that Oracle code isn't just 10-15 lines that its really possible to change in a short way.

When I run a query, first oracle will search this library if cached query cursor can not found create it there and then start interviewing research data. While the oracle process research to the cursor when it exists, it crashes a block of memory that it is currently reading in the library cache. After that, he will start looking to the data buffer cache. in seeking the data block, each block will be locked again while reading process and released when he finished reading.

in which level a mutex and latch will be created and released. It might be easier if I get an example like that.

for the moment, I think that mutexes and locks are algorithms to protect the wrong again... maybe shared structure.

They are different ways to do the same thing, latches are something you need to wait, revolve around the CPU to get their hands on them. Mutex, are much faster, can be acquired more quickly and released more quickly as well.

HTH
Aman...

Tags: Database

Similar Questions

  • Why the NFC are not available in android 4.0 update?

    Why the NFC are not available in android 4.0 update?

    Bobbles, can link you to me?

    Some galaxies (s2) have NFC chips and some not... but now they have released the galaxy S3 and who is capable of NFC

    Its really not possible to do a NFC capable of upgrading software device

    Device needs to have the NFC chip

  • Why the titles are not saved with the project? Where are they?

    CS5 PC.

    Why the titles are not saved with the project? Where are they? I can save them with the project?

    You can also configure a project basis including all titles.  When it's time to start a new project, open the template and change the name before starting to work.  In this way all the foundations are in place without having to implement the project with these basics every time.

  • Why the files are stored on an external drive not appearing in the "other" classification on my iMac HD?

    I'm running OS X version 10.11.4 on an iMac, retina 5 K 27-inch/3.5 GHz Intel Core i5 with 24 GB RAM/1 TB HDD and I have had for about a year, although I migrate some files over my old machine, but most were on an external.  I have almost all my larger files on an external drive 2 TB - for the most part hi res .eps, .jpeg, .png.

    I run CleanMyMac 3 as a utility. When I saw recently that I had more than 600 GB of 'others' I decided I have to spend the day to clean my files and machine - and have therefore been sucked into this rabbit hole.

    After cleaning duplicate files, empty the caches, removing unused applications and clean the external hard drive, I have still 570 GB of "other".  When you click on the bar in their own my Mac, it gives you a list of what is included in each of the classifications of file storage.  I understand, including all Documents to plain text, PDF and even files .docx, ect...

    what I don't understand is why:

    1 .pages (documents created in the clean Apple program) are not classified with documents, rather than as 'other '.

    2. why each of my .eps files that are stored on an external drive also claim space on my Mac?  It would potentially be the preview images displayed in the Finder? And if so, why it store a snapshot of the same size as the actual file?

    AND, most importantly, I can recover some of the disk space consumed by the huge amount of .eps files?

    Thank you

    Christina

    A

    'CleanMyMac' is a scam and a frequent cause of instability and poor performance. Depending on which version you have, the developer's instructions may not completely uninstall. Please follow these instructions, then do as below.

    Back up all data before proceeding.

    Triple-click anywhere in the line below on this page to select this option:

    /Library/LaunchDaemons/com.macpaw.CleanMyMac3.Agent.plist

    Right-click or Ctrl-click on the highlighted line and select

    Services ▹ reveal in Finder (or just to reveal)

    the contextual menu.*, a file can open with a selected item. If so, move the selected item to the trash. You may be prompted for administrator login password.

    Repeat with this line:

    /Library/PrivilegedHelperTools/com.macpaw.CleanMyMac3.Agent

    Restart the computer and empty the trash.

    You may also delete one or more of these elements in the same way:

    ~/Library/LaunchAgents/com.macpaw.CleanMyMac.helperTool.plist
    ~/Library/LaunchAgents/com.macpaw.CleanMyMac.volumeWatcher.plist
    ~/Library/LaunchAgents/com.macpaw.CleanMyMac3.Scheduler.plist

    Never install "CleanMyMac" or something like that.

    * If you do not see the item context menu copy the selected text in the Clipboard by pressing Control-C key combination. In the Finder, select

    Go ▹ go to the folder...

    from the menu bar and paste it into the box that opens by pressing command + V. You won't see what you pasted a newline being included. Press return.

    B

    For the other category in the display of information storage, see this support article. If the display appears to be inaccurate, try to rebuild the Spotlight index.

    Empty the trash if you don't have it already done. If you use iPhoto, emptying his trash internal everything first:

    ▹ iPhoto empty the trash

    In pictures:

    ▹ Show of the recently deleted ▹ file delete all

    Do the same thing in other applications like Aperture, with an internal feature of the trash. Then, restart the computer. Temporarily, which will free up space.

    According to the documentation from Apple, you need at least 9 GB of free space on the boot volume (as shown in the Infolog) for normal operation, not the mythical 10%, 15% or any percentage. You also need enough space to allow the growth of the data over. There is little or no advantage in terms of performance to get more free space than the minimum Apple recommends. Storage space you'll never use is wasted space.

    See this support article for some easy ways to free up storage space. A common waste of space is old backups iTunes to mobile devices. As shown in this support article, select the devices tab in the iTunes preferences window, select the backup that you want to remove and click on delete the backups. Keep at least a backup of each device you use yet.

    You can use a tool such OmniDiskSweeper (ODS) to explore the volume and discover what is take up space. You can also delete files with it, but not unless you don't know you know what you remove and that all data is stored safely. This means that you have several backups, not one. Note that CESO works with OS X 10.8 or later.

    Deletion of files inside a photo library or iTunes will damage the library. Such a library should be changed within the application that created it. It is the same for e-mail files.

    Go further than if the problem is not resolved by the steps above.

    ODS cannot see the whole file system when you run simply by double-clicking; He sees only the files that you have permission to read. To see everything, you must run it as root.

    Back up all the data now.

    Install the application in the Applications folder as usual. Quit it runs.

    Triple-click any where in the text line below on this page to select, then copy the selected text in the Clipboard by pressing Control-C key combination.

    security execute-with-privileges /A*/OmniDiskSweeper.app/*/M*/* 2>&-

    Launch the Terminal application integrated in one of the following ways:

    ☞ Enter the first letters of his name in a Spotlight search. Select from the results (it should be at the top).

    ☞ In the Finder, select go utilities ▹ of menu bar or press the combination of keys shift-command-U. The application is in the folder that opens.

    ☞ Open LaunchPad and start typing the name.

    Paste in the Terminal window by pressing command + V. You will be asked for your login password.

    The application window opens behind other open windows. When you scan a volume, the window will finally show all files in all folders, sorted by size. It may take a few minutes for the app to finish scanning.

    I do not recommend that you make a habit of doing. Do not delete anything as root. If something should be deleted, make sure you know what it is and how it got there, and then remove by safer alternatives. If in doubt, leave it alone or ask for advice.

    When you are finished with the app, he quit and also to leave Terminal.

  • Why the index are lost after recovering from a REPLICATE_PERSISTENT region?

    GemFire Version V7.0.1.3 for region below specifications. java.lang.String com.foo.bar.Positon after recovery of the store persistent it is no markings on the region. All indexes are lost. CacheFactory cacheFactory = new CacheFactory(); cache = cacheFactory.create (); Ins ByteArrayInputStream = new ByteArrayInputStream (cachexmlstring); cache.loadCacheXml (ins);

    OK I understood why the index get lost. Is that the way cache is initialized.

    CacheFactory cacheFactory = new CacheFactory();

    cache = cacheFactory.create (); Cache is created here without consideration of persistence pdx

    Ins ByteArrayInputStream = new ByteArrayInputStream (cachexmlstring);

    cache.loadCacheXml (ins); Now loading data it has no definition pdx index data.

    So now even if I get the data loaded in the regions, when I probe through gfsh, there's no index.

    I just changed the code of

    FileOutputStream ops = new FileOutputStream ("cache.xml");

    OPS. Write (cachexmlstring. GetBytes());

    CacheFactory cacheFactory = new CacheFactory();

    cache = cacheFactory.create ();

    The indexes are coming fine...

  • Why the letters are so tiny on Google Maps

    I'm not sure how to describe this problem so please bear with me. Until yesterday, my Google maps seem to be fine. So last night I noticed something strange (after a member of the family had been on it looking for itinerary). Normally, when you search for an address, the result is to the map location and left in the white area is the address you typed in. This is primarily a light blue box that gives you options: my map, Get Directions, and covering the part of map: print, send, link. For some reason, this band blue all of the news is almost completely hidden. I see only barely the tops of the lettering. It's as if the card it is bunk. In addition, the letters in the white part (left of the map) and in the search box where you can type a new address is EXTREMELY small. How is this happen and how can I get this back to the way it was? I asked the person who was using the computer and they have no idea what they were doing, if anything. I would greatly appreciate someone's help with this. I use Firefox, on a version of Mac OS X 10.5.8.

    You are welcome. Please mark it as resolved.

  • Why the Secure areas not at my disposal when I manage my site?

    I just rebuilt my site in Muse and transferred to the Cat Business. I tried to add a protected area, but the option does not exist. Is it a thing of Muse and admin thing?Screen Shot 2015-11-07 at 8.56.56 AM.png

    Hey, I suggest to contact support if the problem persists. In addition, mention the URL of the site and the user name, that you connect to when the safe areas is not displayed.

    Kind regards

    Mihai

  • Why the footer area is down the page of master not

    My Master Page looks perfect, but all other pages the footer down by its exact size in pixels, so master pages not, there is a white space of the size of the footer with the footer in this space. Any ideas? I think I've exhausted all my options. It's in the last build thank you!

    HI GUYS!

    Thanks for all the help, I Redid the drawing on a page master B and figured out the question while I was going along, I had a 12px by 1600px box was in the footer area page on top of the 'big' page footer area, I haven't been there splash above the footer in the area of content instead and the html code seems to have smoothed itself it seems. Great! Thanks again mac!

    I am really enjoy MUSE btw

  • Why the pallets are moving downwards on the 2nd monitor

    I noticed today that InDesign CC14 in which the palettes are moving to halfway to the bottom of the screen (on a 2nd monitor) and if you try to put them back, they just jump again. What's Goin ' we?

    FYI - I ended up coming back to 10.10.1 today and that's it works well again...

  • Why the guests are locked on the 100% on HP DL 385 G5p memory usage?

    I have performed nearly identical systems in several secondary schools.  Some are based on HP DL 385 G5 with 2356 processor and some based on HP DL 385 G5p 2378 processor with.  Aside from the slightly different patterns of the host, the rest of the systems are the same (amount of RAM, number of processors, etc.).  Host servers running Windows 2008 core server.

    When I look at the graph of the memory (%) running, the virtual servers on the G5 rise and fall use and release memory as expected.  However, all the servers on the G5p are locked at 100% use of memory and never move.  Can someone explain this difference in behavior?  Influence the way I should plan for future expansion of the system, etc.?

    This is a bug... just install the exs4 update 1

    http://KB.VMware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalID=1014019

  • Dreamweaver CS5, MySQL, PHP: Why the views are listed under the tables in connection

    Using Dreamweaver C5 on a remote server with MySQL and PHP, I notifce the opinion that I defined in the database are the list under tables in the login window, not under views. Probably does not really matter, but I was wondering if there is a way to influence this - keeping views listed separately in the tables.

    Hello

    This has to do with how MySQL stores the view in the database, (a similar problem occurs with procedures) that they are stored as part of the entire database.

    View on there own are not natively supported in dreamweaver.

    PZ

  • Why the applications are not available through updates

    Why are all updates not available through downloads on apple's site. It's a real pain having to update computers 2 - cost me twice the bandwidth on a connection slow broadband.

    Any suggestion that would save me doing updates twice?

    Concerning

    Ron

    If you register for an application installation before installation, you can simply move it to another Mac without downloading it again.

  • Why the links are not active in the Windows 8 e-mail program?

    I have been using Windows 8 during about two months now and I must admit that it is a little buggy but no bother it's why people like me come to the forums to help out and let everyone know something is not working correctly! If somehow when I get email from anyone with links in their email (YouTube) or everything that I noticed that they are not active and will open not in IE 10 or any browser. Now it's with the preinstalled Windows 8 Mail program not the version of the browser on the Outlook.com. I guess it is just called Outlook, but on the start menu, it is listed as a courier.   Y at - it a kind of reason for this or is it an oversight of some parameters, that I can't find to activate links? Tried searching with no luck and the help function substantially the same, no luck.

    Hello

    Welcome to the Microsoft Community, the best place for all your windows related queries.

    From your description, I understand the links that you receive in your email using the mail app are not active.

    Could you answer a few questions to understand the question.

    1. in response to the same question in all accounts e-mail you have set up in the mail application?

    2. is Internet Explorer your default browser?

    I wish to inform you that this is not a bug. You should be able to access links through the mail application.

    So I suggest you to remove the account and it resynchronize on mail application and check.

    Reference:

    Mail app support:

    http://social.technet.Microsoft.com/wiki/contents/articles/14168.troubleshooting-the-modern-mail-app-on-Windows-8.aspx#Modern_Mail_Application_Requires_ActiveSync_or_IMAP

    It will be useful. For more information related to Windows, you are always welcome in our community.

  • Why the features are not available for me?

    My desktop version of Firefox, the option shown on this screenshot is disabled: http://screencast.com/t/k7YIzNTC9C7. It is not grayed out on my version of the laptop.

    In addition, I'm not able to select the option "Always Enable" to always enable notifications of certain websites in my browser on my desktop, but I'm able to do on my laptop.

    Both versions are updated to 36.0.4.

    Make sure that you are not Firefox running in permanent private browsing mode (don't remember history).

    • Tools > Options > privacy > Firefox will be: "use the custom settings for history".
    • : Uncheck the [] "always use the private browsing mode.
  • Why the images are blocked in my emails?

    My e-mail work fine except that some images are blocked and contain a small box with a red x in it. Also when I open Thunderbird, it says that it cannot connect to the proxy server.

    ... it says it cannot connect to the proxy server.

    Check your network settings, then correct for the proxy. If you do not use a proxy, adjust the setting accordingly.

Maybe you are looking for