What about post notify?

Hi to everybody,
I've got a doubt related to the notify (or notifyAll) method. What happens after a thread calls notify? The monitor theroy states that the thread should be temporary suspended, granting the access to the resumed thread. Once the latter has finished the notifier thread (suspended into an urgent queue) should be resumed in order to conclude its execution (i.e., to do the code after the notify call).
Nevertheless, debugging a program that apparently misbehaves, I noticed that after a notify call the notifier thread does not seem to suspend itself.
With this suspect I read the documentation for the java.lang.Object#notify method, and I found:
The awakened thread will not be able to proceed until the current thread relinquishes the lock on this object. The awakened thread will compete in the usual manner with any other threads that might be actively competing to synchronize on this object; for example, the awakened thread enjoys no reliable privilege or disadvantage in being the next thread to lock this object.
that means that the resumed thread is only resceduled, but it does not start its execution immediatly. Is this right? Can anybody give me some details about the exact behavior of the notify/wait thread scheduling?
Thanks,
Luca

[url http://forum.java.sun.com/thread.jsp?thread=466588&forum=31]Cross-post. Please read one of the many guides to forum etiquette to see why that's unpopular. For example, http://pjt33.f2g.net/javafaq/posting.html

Similar Messages

  • How do I get out of kernel panic?  kernel panic upon boot.  I did that hard drive cleanup and reinstalled Lion.  What about memory?  Anyone think I need to upgrade my memory?  I have 8gig.

    I get kernel paic upon boot.  I did that hard drive cleanup and reinstalled Lion.  What about memory?  Anyone think I need to upgrade my memory?  I have 8 G of upgraded RAM. (20 inch iMac core 2 duo)

    If you're able to boot, launch the Console application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ If you’re running Mac OS X 10.7 or later, open LaunchPad. Click Utilities, then Console in the page that opens.
    Select the most recent panic log under System Diagnostic Reports. Post the contents — the text, please, not a screenshot. For privacy’s sake, I suggest you edit out the “Anonymous UUID,” a long string of letters, numbers, and dashes in the header and body of the report, if it’s present (it may not be.) Please don't post "shutdownStall" or "hang" reports.
    If you can't boot in the usual way, try a safe boot. The instructions provided by Apple are as follows:
    Be sure your Mac is shut down.
    Press the power button.
    Immediately after you hear the startup tone, hold the Shift key. The Shift key should be held as soon as possible after the startup tone, but not before the tone.
    Release the Shift key when you see the gray Apple icon and the progress indicator (looks like a spinning gear).
    During startup, you’ll see a progress bar, and then the login screen, which appears even if you normally log in automatically. You must know your login password in order to log in. If you’ve forgotten the password, you will need to reset it before you begin.
    Safe mode is slower than normal, and some things won’t work at all.
    Note: If FileVault is enabled under Mac OS X 10.7 or later, you can’t boot in safe mode.

  • HT5312 what about if you have added a rescue email address and verifyed it and the forgot your security question thing still doesnt show because i dont no my security questions ???????????????????????

    what about if you have added a rescue email address and verifyed it and the i forgot my security questions still doesnt show up and i dont no the answers !?!?!?!?!?!?!?! what do i do then because i dont want to phone up !?!?!?! please help !!??!?!?!

    If you have just added an address to your account then it will be an alternate email address - a rescue email address can only be added by answering 2 of your questions. You will need to contact iTunes Support or Apple to get the questions reset.
    e.g. you can try contacting iTunes Support : http://www.apple.com/support/itunes/contact/ - click on Contact iTunes Store Support on the right-hand side of the page, then Account Management , and then 'Forgotten Apple ID security questions'
    or try ringing Apple in your country and ask to talk to the Accounts Security Team : http://support.apple.com/kb/HE57
    When they've been reset you can then use the steps half-way down the page that you posted from to add a rescue email address for potential future use, or you could change to 2-step verification : http://support.apple.com/kb/HT5570

  • Nice updates/fixes but what about the reception issue?

    Don't want to beat a proverbial dead horse, but what about making the IPhone 4 a better receiver of calls? My 3Gs was the BEST phone I ever owned. I rarely had a dropped call, I was able to make and receive calls in places where no phone I had owned previously could. When I read that this phone had the best reception of any IPhone (according to Apple) I went and made the switch. Yes, I read many posts where folks say just that, great phone. I am on IPhone 4 number three and all have been plagued with reception issues, thought the first two were worse than this one. I go to the same locations every day and the 3Gs sent and received calls remarkably better. Just sayin.....

    n2speed125 wrote:
    What ps issue? I have none!! The reception issue is real and I lose signal in places where my 3GS would not.. I can hold my 3gs any way I like and still use the internet.. While using my iPhone 4 in the same place, all I get is the spinning wheel of death and it does not connect.. I've had the bumper on it since I got it and while it may help a little, it does NOT make the issue disappear..
    Just because an issue doesn't effect YOUR phone, doesn't mean it's not an issue for others..
    if you are not using a case then you are just ... idk... slow or something.
    because apple put the antenna on the outside of the phone it is easier to attenuate the signal but it also gives much better reception. i have not dropped one call on my iphone 4... i was dropping tons of calls on my 3Gs and i am in the same area.
    i have tried to attenuate the signal on my phone and cannot with the case on no matter how i hold it. if i take the case off and hold the sweet spot it drops like crazy. maybe your bumper isn't covering the antenna well enough.
    i got the incipio NGP for 19 bucks at walmart. if you put that case on and still have the issue then i think you are totally full of cr@p.
    Message was edited by: himoura

  • About post install scripts...

    hi,
    i wonder if there is a solution for the post-install script problem to prevent some commands like "rm -rf /" to be executed. I know that Gentoo hasn't got this problem because ebuild scripts use a particular language that doesn't implement a such command. But for Arch which uses bash, could this problem be really resolved ?
    Comete.

    Toth wrote:[...]
    A package is software, and you have to trust that the software you are downloading is legit. If it is, and you trust the packager, you have no reason not to trust the package.
    exactly ---> do not download from sources you dont trust
    (if you ever worked on a windows, you know that already, because there is a lot of evil things around (spyware, virus, bacteria, nice VB-scripts, nice JS-scripts ...))
    -> the problem about security: if your OS becomes popular, then the bad guys see it as enough popular to do something bad with it
    Toth wrote:I assure you, if the package maintainers ever run across a submitted package with "rm -rf /" in the post install script, they won't add it to the Arch Linux repositories. If/when you find a 3rd-party Arch package for download, that's a risk you are going to have to take. Check the scripts, check the source of the program (if you're paranoid). That's about all you can do.
    what about a check (in pacman), to give warning, that something will be done with / ... as i know, there is no line to run with / as parameter for a normal reason during an installation or upgrade
    if you download a non-archlinux.org package (downloaded from somewhere else), the install procedure is now this:
    > pacman -A bad-0.1-1.pkg.tar.gz
    loading package data... done.
    checking for conflicts... done.
    installing ... done.
    >
    the check would look like this:
    > pacman -A bad-0.1-1.pkg.tar.gz
    loading package data... done.
    checking install/upgrade scripts ...
    Warning: Found lines in Install-Script that contain / :
    line 3: do something
    line 4: cd / <---
    line 5: rm -rf *
    line 6: echo "I was a bad script"
    Continue with installation [y|N] y
    checking for conflicts... done.
    installing ... done.
    I was a bad script
    >
    this will at least give the user a chance to look at code that contain "/ " in the install/upgrade/remove-scripts and have some control
    of course this will not check the package-content :-( ... but at least you will have one leak closed particulary

  • Hello ! i was in Vietnam , I can buy 1 pcs iphone4s , so phone market in Vietnam is quite complex tap.toi bought second-hand products appe dung.khi listen and buy the only known called glide wep.i not know what about software icoud and my brother borrow a

    Hello ! i was in Vietnam , I can buy 1 pcs iphone4s , so phone market in Vietnam is quite complex tap.toi bought second-hand products appe dung.khi listen and buy the only known called glide wep.i not know what about software icoud and my brother borrow a watch and do something when i hold the camera has locked user accounts icoud.va I never should never registered icoud know nothing about it through ca.vua im traffic accident problem in my head so do not remember anything , what e-mail address registered in both phones now I just keep imei number in my notebook only. I loved iphone 4s phone her , so I had to buy it for 120 employees ngay.vi not use the phone anymore I 've lost 10 eat sleep all right now roi.cac you please have I somehow helps reactivate and continue to use it not ? if have any information please email them to help me [email protected] . because my language is bad for you please email them for me I can not speak directly with you is just empathy for me okay ! thank you

    Stop trolling and don't post personal information on a public forum.  Nobody can help you on a public user to user technical support forum.

  • ONLY IN CHINA WHAT ABOUT INDIA?????????

    WHAT ABOUT THE APPLE PRODUCTS IN INDIA? PLEASE OPEN APPLE STORES IN EVERY DISTRICTS AS WELL AS THE SERVICE CENTRE...IF U DO THAT APPLE WILL BE THE NUMBER 1 PRODUCT IN INDIA AND PEOPLE OF INDIA WANT UR PRODUCTS IN THEIR HANDS,BUT APPLE DIDN'T TAKING ANY STEPS.

    You are not communicating with Apple when you post here. Almost everyone is, like me, a fellow user. Apple will, I'm sure, open their own stores in India when they see a sufficient business case to do so and can work out the myriad details involved.
    By the way, posting all in caps is more difficult to read and is consider to be "shouting" by convention, somethign I hope you find no need to do here.
    Regards.

  • What about the apple remote on iMac 2012?

    Hi, I'll buy a new iMac 2012 but what about the apple remote? A new one will be released? Or bye bye the remote?

    Yep there are some other posts already here about that and many others in the now deleted pre release board.

  • Tim Cook said sorry for IOS6 maps, what about WiFi...

    Been exhausted more than a week about the wifi connections, tried every way I could find to fix it, router settings change, re-start the net work, wiped all data and registered again, invested a new router....Nothing work...
    I called apple servise they told me exactly the same I already tried before, no help at all, asked them when this bug can be fixed, they don't know...
    Today TK said sorry about maps but what about the WiFi, noboday in apple know this  is a huge bug? Or they know and they just don't care? Or they care but they just don't know how to fix it? Or they know how to fix it but they just too slow?
    Actually the WiFi is more fundamental than map, without it, ipad (wifi only version) can not even work.
    Does any one know Tim Cook's email so I can send this to him?

    The Maps and YouTube issues have been addressed before, but again:
    Google is reportedly working on releasing an app for their maps themselves. Until then, you can use their mobile web site or one of the alternate maps apps, many of which have been suggested in other threads. Google already has a YouTube app, though not yet one that takes advantage of the iPad's screen, but there are many other YouTube apps;
    I don't know what you mean by "full screen support" being missing;
    AirPlay works fine for me;
    If you wish to sell your Apple products, though, by all means go ahead if you feel that some other products would suit you better. You might want to look at the FBI warning about malware on Android devices before you decide that the "Apple control freaks" are totally without merit and you go running to Android systems.
    Clearly when you bash a product they don't want you posting on their site.
    Nonsense, as any quick scan of the forums would quickly show. But the terms of use here clearly state that posts that are nothing but complaints are inappropriate and may be removed.
    I see no purpose to your post since you've apparently already decided what you intend to do. If you want real assistance, by all means post back and ask, but if you just want to rant, I'd suggest you not waste your time and spend it posting your stuff for sale on appropriate sites (of which this is not one).
    Regards.

  • What about GST.......?

    Hi All
    I need some information on GST........
    Actually, I heard that GST is introducing in April 2010....
    What about CIN.......!!!
    Again, companies are implementing on CIN. Then what about GST
    What is the difference between CIN & GST...
    What about future career for GST..........?
    Please give me your suggestion.....?
    Thanks
    Likitha

    Please read SCN's rules of engagement before posting in this forum.
    - The most important rule... be sure to search before posting. You can use either SDN's basic search or advanced search, or an internet search engine such as Google. As an example, questions such as "How to migrate to the NewGL" have been asked many times before and will most likely be ignored by the community.

  • HT2531 Spotlight lists items and shows preview images.  BUT what about showing the location address of an item in my computer. Especially important if I've put the item in the wrong folder and what to locate it without multi-steps. iMac OS 10.5 was more u

    Spotlight lists items and shows preview images.  BUT what about showing the path/location address of an item in my computer.
    Especially important if I've put the item in the wrong folder and what to locate it without multi-steps. iMac OS X 10.5 was more useful.
    Old OSX Spotlight function automatically displayed path/location within the machine:  e.g. desktop/folder/sub-folder/item.
    Can I make Spotlight show the path?

    Press option-command and the path is displayed at the bottom of the little preview window.  Press command-return and the enclosing folder opens. 

  • Confirmation of PM order, what FI posting will be done in SAP

    Dear Gurus,
    On final confirmation of PM order, what FI posting will be
    done in SAP ?
    Regards

    Hi Entry Will be
    Stock of FG Accunt debit
      to COGP Account
    Mann

  • HT5071 Is it possible to call a locally installed ibook from a hyperlink? What about to a bookmark?

    Is it possible to call a locally installed ibook from a hyperlink? What about to a bookmarked page?
    I have 2 questions..
    1. Can I send a link via email that when launched will open an ibook that has already been downloaded to the bookshelf?
    2. If question 1 is possible, can I take it a step further and call a bookmark, i.e. chapter 3.
    Our company has it's own appstore and I want to send out links to sections of the ibooks using bookmarks or at the very least take them to the start of the ibook.
    I don't need to give them a link to install the ibook as they already have it installed.
    Any help would be much appreciated.
    Chris.

    That would be cool, but it's not possible. The ibook is not accessible by URL in the user's bookshelf.

  • HT204053 My kids now each have an itouch, should we all have different apple ids even if I am paying for all itunes and app store purchases? what about icloud? I would like to share itunes and app purchases, but not necessarily photos...help please!

    My kids now each have an itouch, should we all have different apple ids even if I am paying for all itunes and app store purchases? what about icloud? I would like to share itunes and app purchases, but not necessarily photos...help please!

    The recommended solution for most families is to share the same Apple ID for iTunes and App Store purchases, so you can share your purchases, but us different IDs for iMessage, FaceTime and iCloud.  With this arrangement, each person can automatically download purchases made on the shared ID (by turning this feature on in Settings>iTunes & App Stores), while keeping their FaceTime calls, text messages and iCloud data (including photo stream) separated.  There is no requirement that the ID you use for purchasing be the same as the ID you use for these other services.
    This article: http://www.macstories.net/stories/ios-5-icloud-tips-sharing-an-apple-id-with-you r-family/.

  • HT1206 Lots of info about one user using multiple computers. What about multiple users with separate Apple IDs using same computer? Having problems getting my wifes new iPhone talking to her apple account on the computer we share (2 users)

    Lots of info about one user using multiple computers. What about multiple users with separate Apple IDs using same computer? Having problems getting my wifes new iPhone talking to her apple account on the computer we share (2 users)

    You need to create a user account for your wife (or yourself depending on who has the current user account). When syncing, each of you should sign in as a separate user, login to iTunes and then sync. I had this problem when my sister got an iPhone. When we did her initial sync, everything on my iPhone showed up on hers. Apple gave me this solution.

Maybe you are looking for