Wait for the execution end of a Thread

Hi every body,
How to make a program waiting the execution end of a thread,
the instruction join did not work fine.
Computation c = new Computation();
Thread t = new Thread(c);
t.start();
t.join(); // here my thread dead
System.out.println("done");
Regards

Did you try it without t.join?And t did its work fine in that case, but putting the join into the main thread caused t to not do anything?
I can't say what's happening without more code, but two possibilities pop to mind:
1) You changed something else, and join has nothing to do with it.
2) You're syncing on t in a way that interferes with (or gets interference from) join (which also syncs on t).

Similar Messages

  • Waiting for the end of the process

    I'm executing a command using the Runtime class and I have to wait until the end of the command to get the results. But, I don't want to sleep the thread for some undeterminated time. I'd like it just to wait until the command ends.
    See in this code:
    try
    String result="";
    Process p = Runtime.getRuntime().exec("sh"); //open a new shell
    InputStream is = p.getInputStream();
    OutputStream os = p.getOutputStream();
    os.write("ifconfig -a | grep PROMISC -c\n".getBytes());
    os.flush();
    try {
    Thread.currentThread().sleep(1000);
    /*command should take some time to execute so wait for 10 secs .... I don't like this .... I would prefer waiting for the end the command ifconfig*/
    catch (InterruptedException eIE) { }
    while (is.available() > 0)
    result = result + ( (char) is.read());
    System.out.println(result);
    catch (IOException e) {
    System.out.println(e);

    AFAIK you can only detect if the shell process has finished, as sub-processes of the shell are not visible to your Java program (without resorting to OS-specific syscalls).
    You can write "exit" (or whatever terminates your shell) in the output stream as the last command - this will quit the shell as soon as all commands are finished, and that will be visible to your prog. Note that you should not run ANY of the shell commands in background then, as this could cause the shell to exit before the commands are finished (and, depending on the system, even signal the subprocesses).

  • Contract ending soon...wait for the iPhone 5?

    My contract ends on 6/4/11 and I'm thinking about waiting until the summer to see if there will be a Verizon iPhone 5 since I don't want to buy the iPhone 4 now and have it be obsolete within a few months.
    If the iPhone 5 does come out later on in June or July, my contract will already be over. I've heard that contracts continue on a month-by-month basis if you don't cancel it but I can't find any specific info on the site. Is that true?
    Suggestions?

    a couple of ways to look at this, of course this is amongst the dozens of threads already discussing this
    1. "IF" a new one comes out in june the iphone 4 is not obsolete, it is still a great, fast phone that will continue to get updates as Apple releases them
    2. Buy now, if a new one comes out in june, you can get like $400 or so on ebay and buy the new one
    3. there is most likely a new iphone coming for att in June,  NO ONE knows if it will be for Verizon also, so you may be waiting for absolutely nothing
    4. and the most obvious most given answer, If you keep waiting for the next best thing, you will never own anything
    My other phone, the droid inc is older then the iphone 4, A LOT of droid phone have been released after it and my Inc is still not even close to being obsolete, it runs fine.
    Maybe at this point I finally will say the iphone 3g, not 3gs, is almost obsolete because 4.2 killed it and it's terribly slow, that phone is almost 3 years old and its just becoming obsolete, I still sold it however for almost $200 on ebay so it still holds the value, I sold it for what i paid 2 years later

  • Application waits for the thread to finish

    Hi all,
    I have a class let say test that extends Thread.
    In my application i say:
    test Xtest = new test();
    Xtest.start();
    System.out.println("Thread finished");
    I need my application to wait for the thread to finish for it to continue, i.e. in my example print "Thread finished" .
    Can someone help me.
    Thanks in advance for your help.
    Best regards,
    Saadi MONLA

    This should work:
    test Xtest = new test();
    Xtest.start();
    Xtest.join();
    System.out.println("Thread finished");

  • How to do custom dialog so it displays the dialog and waits for user to end

    I have an application that I want to create my own dialog screens. For example, the user cliks on one frame, and I want to open a window for the user to enter data, after the user finishes, he presses OK and then the main app continues.
    On the class that I open the dialog, I open it with:
    NewOkCancelDialog.abrePopup();
    System.out.println("Program should wait for the dialog to close");And the 'NewOkCancelDialog' class is defined like:
    public class NewOkCancelDialog extends javax.swing.JDialog {
    The constructor is like:
    public NewOkCancelDialog(java.awt.Frame parent, boolean modal) {
    super(parent, true);
    initComponents();
    this.setLocation(400,400);
    This methods are when the user activates the button and the popup closes..
    private void cierraPopupOk(){
    resultados.setciudad1(this.fld_ciudad1.getText());
    if (resultados.getciudad1length() < 3) {
    System.out.println("Error en la entrada!");
    } else {
    doClose(RET_OK);
    private void okButtonActionPerformed(java.awt.event.ActionEvent evt) {                                        
    cierraPopupOk();
    private void doClose(int retStatus) {
    returnStatus = retStatus;
    this.estaAbierto = false;
    setVisible(false);
    dispose();
    I would like to have the application in the first lines, after calling
    NewOkCancelDialog.abrePopup();
    to wait until the method doClose() in NewOkCancelDialog class is finnished. But right now, after the ...abrePopup() is called, it continues.
    What am I doing wrong? or what am I not doing?

    Use the "code" tags not the "bold" tags when posting code.
    But right now, after the ...abrePopup() is called, it continues.Well your posted code doesn't show this method so we don't know what you are doing in this method.
    Why are you using a static method to show the dialog? Normally the code would be:
    JDialog dialog = new CustomDialog();
    dialog.setVisible( true );
    But you are correct with the basic idea in that you need to use a modal dialog.

  • Please wait for the group policy client - shutting down issues

    Hi
    I have issues with shutting down machines. When machine is connected to company's LAN everything works fine. However, if machine is connected to VPN - Juniper NC - 1 hour or more it always hangs when it is shutting down. When I shut down the machine
    (verbose mode on), first stage is:
    Please wait for the system Event Notification service. 
    This ends exactly
    after 3 minutes. Next stage:
    Please wait for the group policy client windows 7
    ...is never timed out (even after few hours). Machine never shuts down.
    In Application logs there are always these 4 events when machine is unsuccessfully shutting down:
    6005: The winlogon notification subscriber <Sens> is taking long time to handle the notification event (Logoff).
    4627: The COM+ Event System timed out attempting to fire the Logoff method on event class {D5978650-5B9F-11D1-8DD2-00AA004ABD5E} for publisher  and subscriber .  The subscriber failed to respond within 180 seconds.
    The display name of the subscription is "ISensLogon2". The HRESULT was 80010002.
    6006: The winlogon notification subscriber <Sens> took 180 second(s) to handle the notification event (Logoff).
    6005: The winlogon notification subscriber <GPClient> is taking long time to handle the notification event (Logoff).
    Sens is timed out after 3 minutes while there is no 6006 event for GPClient and machine is stuck there for ages (Please wait for the group policy client
    stage). I noticed in System logs that machine always hangs if there is this error
    5783: The session setup to the Windows NT or Windows 2000 Domain Controller \\server for the domain X is not responsive.  The current RPC call from Netlogon on \\machine to \\server has been cancelled.
    I made a group policy log and below you can see part of GPSVC log when machine is unsuccessfully shutting down:
    GPSVC(2d4.1cfc) 21:31:24:327 CGPNotify::UnregisterNotification: Entering with event 0xe58
    GPSVC(2d4.1cfc) 21:31:24:327 CGPNotify::AbortAsyncRegistration: No asyn registration is pending
    GPSVC(2d4.1cfc) 21:31:24:327 CGPNotify::UnregisterNotification: Canceling pending calls
    GPSVC(2d4.1cfc) 21:31:24:327 Client_CompleteNotificationCall: failed with 0x71a
    GPSVC(2d4.1cfc) 21:31:24:327 CGPNotify::UnregisterNotification: Cancelled pending calls
    GPSVC(2d4.1cfc) 21:31:24:327 CGPNotify::UnregisterNotification: Exiting with dwStatus = 0x0
    GPSVC(438.1a04) 21:31:24:327 Waiting for user group policy thread to terminate.
    GPSVC(2d4.1cfc) 21:31:24:327 CGPNotify::UnregisterNotification: Entering with event 0xe10
    GPSVC(2d4.1cfc) 21:31:24:327 CGPNotify::AbortAsyncRegistration: No asyn registration is pending
    GPSVC(2d4.1cfc) 21:31:24:327 CGPNotify::UnregisterNotification: Canceling pending calls
    GPSVC(218.c88) 21:31:24:327 Client_CompleteNotificationCall: failed with 0x525
    GPSVC(2d4.1cfc) 21:31:24:327 Client_CompleteNotificationCall: failed with 0x71a
    GPSVC(2d4.1cfc) 21:31:24:327 CGPNotify::UnregisterNotification: Cancelled pending calls
    GPSVC(2d4.9c8) 21:31:24:327 CGPNotify::OnNotificationTriggered: Completenotification failed with 1317
    GPSVC(2d4.1cfc) 21:31:24:327 CGPNotify::UnregisterNotification: Entering with event 0xdcc
    GPSVC(218.1054) 21:31:24:327 CGPNotify::UnregisterNotification: Entering with event 0x20cc
    GPSVC(2d4.1cfc) 21:31:24:327 CGPNotify::AbortAsyncRegistration: No asyn registration is pending
    GPSVC(2d4.9c8) 21:31:24:327 CGPNotify::OnNotificationTriggered: Completenotification failed with 1317
    GPSVC(2d4.1cfc) 21:31:24:327 CGPNotify::UnregisterNotification: Entering with event 0xd90
    GPSVC(218.1054) 21:31:24:327 CGPNotify::AbortAsyncRegistration: No asyn registration is pending
    GPSVC(2d4.1cfc) 21:31:24:327 CGPNotify::AbortAsyncRegistration: No asyn registration is pending
    GPSVC(2d4.1cfc) 21:31:24:342 CGPNotify::UnregisterNotification: Exiting with dwStatus = 0x0
    GPSVC(218.d48) 21:31:24:342 Client_CompleteNotificationCall: failed with 0x525
    GPSVC(218.d48) 21:31:24:342 CGPNotify::OnNotificationTriggered: Completenotification failed with 1317
    GPSVC(218.1c04) 21:31:24:327 Client_CompleteNotificationCall: failed with 0x525
    GPSVC(218.1c04) 21:31:24:342 CGPNotify::OnNotificationTriggered: Completenotification failed with 1317
    GPSVC(218.1054) 21:31:24:342 CGPNotify::AbortAsyncRegistration: No asyn registration is pending
    GPSVC(218.1054) 21:31:24:342 CGPNotify::UnregisterNotification: Exiting with dwStatus = 0x0
    GPSVC(218.1054) 21:31:24:342 CGPNotify::UnregisterNotification: Entering with event 0x2100
    GPSVC(218.1054) 21:31:24:342 CGPNotify::AbortAsyncRegistration: No asyn registration is pending
    GPSVC(218.1054) 21:31:24:342 CGPNotify::UnregisterNotification: Exiting with dwStatus = 0x0
    GPSVC(218.1054) 21:31:24:342 CGPNotify::UnregisterNotification: Entering with event 0x1264
    GPSVC(218.1054) 21:31:24:342 CGPNotify::AbortAsyncRegistration: No asyn registration is pending
    GPSVC(218.1054) 21:31:24:342 CGPNotify::UnregisterNotification: Exiting with dwStatus = 0x0
    I tried with signing out from VPN before shutting down machine, I even switched off WiFi but machine still hung. If i tried to get GP results before shutting down machine it takes ages and it is stuck in "Getting the user name" stage.
    Gpupdate /force never updates policy (It stops at Updating Policy...). I tired with installing different hotfixes which did not resolve the issue. I never have any
    issues with logging in, no GP scripts are applied when user is logging off or on, no roaming profiles. The only issue is when machine needs to be shut down.
    I excluded 1 machine from GP and left it on VPN for a few hours, several times. It always shuts down successfully. I applied GP back one by one and the one which is presumably causing an issue is Avecto which adds admin rights when VPN application
    starts (event 100):
    Process started with admin rights added to token.
     Command Line: "C:\Users\User\AppData\Roaming\Juniper Networks\Setup Client\JuniperSetupClient.exe"
     Process Id: 5540
     Parent Process Id: 2252
     Policy: EA-PrivilegeGuardSettings.UK Policy
     Application Group: EA-PrivilegeGuardSettings.Applications Granted Admin Rights
     Reason: <None>
     File Name: c:\users\User\appdata\roaming\juniper networks\setup client\junipersetupclient.exe
     Hash: 27D8463A913A802E555AEEF45717B122249AA993
     Certificate: Juniper Networks, Inc.
     Description: Juniper Setup Client
     Application Type: exe
     Product Name: Juniper Setup Client
     Product Code: <None>
     Upgrade Code: <None>
     Product Version: 8.0.6.48695
    I guess there is a DNS issues when machine is on VPN which leads that GP cannot be applied / updated. Not sure if or why Avecto would have an impact on this. When machine is trying to shut down it still somehow thinks it is connected to DC. What
    I also noticed are several explorer crashes while machine is on VPN.
    Does anyone have same issues? All machines are Dell with Juniper NC (VPN).
    Thanks,

    Hi,
    According to event log, Winlogon process takes a long time to handle logoff event. That's to say winlogon process is waiting for response to logoff.  
    According to your description after, this problem is most probably caused by Avecto. You can try to disable or uninstall it temporarily for test.
    To make further troubleshoot with this problem, you can try to use WPT (Windows Performance Tool) to make troubleshoot.
    http://blogs.technet.com/b/askpfeplat/archive/2013/03/22/troubleshooting-windows-performance-issues-using-the-windows-performance-recorder.aspx
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact [email protected]

  • [Solved] systemd does not wait for the unit to finish

    My problem is described in the title. I have made a test by enabling the following unit:
    [Unit]
    Description=/etc/rc.local Compatibility
    [Service]
    Type=forking
    ExecStart=/bin/sleep 1000
    TimeoutSec=0
    RemainAfterExit=yes
    After=network.target
    [Install]
    WantedBy=multi-user.target
    The unit is well started (a process sleep 1000 exists). But with a type=forking, systemd is supposed to hang in this case. Instead, the graphical.target is launched, systemctl list-units mention it as dead, but the display manager is started before the sleep 1000 completes. Ho can I force systemd to wait?
    Last edited by olive (2015-03-16 16:49:34)

    olive, now you're making even less sense. I didn't say the sleep example was stupid and I didn't question your reasons for doing/wanting this.
    I suggested you add "Before=display-manager.service" and you respond "I added Before=graphical.target and it didn't change anything."
    I also tried to explain why systemd has no reason to delay the display-manager.service. You could have asked for further clarification, as berbae has now done. Let's try a longer explanation.
    Service startup
    Services can be started in different ways, as configured with Type=. This determines when a service is considered "started" (or when the service's start-up is considered finished). When a service reaches this state (some time after being started), units that are supposed to start After= this service will be started (and no sooner).
    With simple systemd has no further information about the start-up process. It launches whatever you specify in ExecStart and this is the main process that continues to run till the service stops. systemd assumes this type of service is started immediately. All the other types have some way for the process to indicate to systemd (either directly or indirectly) when it has finished starting.
    Actually oneshot is also a bit special and that is where RemainAfterExit comes in. For oneshot, systemd waits for the process to exit before it starts any follow-up units (and with multiple ExecStarts I assume it waits for all of them). So that automatically leads to the scheme in berbae's last post. However, with RemainAfterExit, the unit remains active even though the process has exited, so this makes it look more like "normal" service with
    begin of unit/startup ---- end of startup ------ end of unit
    This is the relevant behavior for this thread. First sleep starts, then after 1000 seconds, start-up finishes and follow-up units will be started. Then either the unit dies, or (with RemainAfterExit) it stays "active".
    The man page describes how "end of startup" is determined for each Type.
    Targets
    Targets are meant to group units together, to provide synchronization points (and replace runlevels). When you start a target, all its units will be started (in parallel if possible). The man page says:
    Unless DefaultDependencies= is set to false, target units will
           implicitly complement all configured dependencies of type Wants=,
           Requires=, RequiresOverridable= with dependencies of type After= if the
           units in question also have DefaultDependencies=true.
    This means that (by default) when a target is requested, all it units are started first. Only after all units have finished starting, the target itself will be started (and since the target doesn't do anything by itself, this startup is basically instantaneous). Without this dependency, the order between the target and its units is unspecified, so in theory the target could finish starting immediately while its units are still being started.
    Back to olive
    graphical.target has these DefaultDependencies, so it is not started until all its units (like display-manager.service) and other After= dependencies (like multi-user.target) have finished starting. Your sleep service has to be started before multi-user.target starts (again due to default target dependencies). So first display-manager and the sleep service are started and after 1000 seconds, the sleep service finishes starting and then (assuming all other dependencies were quicker) multi-user.target is started and graphical.target as well (assuming display-manager didn't need 1000 seconds).
    If you want display-manager.service after the sleep service, add a Before/After line to specify that (this was your original goal and my suggestion).
    olive wrote wrote:However, units that are parts of the graphical target are still launched before the graphical target become active. I am still unable to completely delay the starts of the graphical target before a specific unit completes.
    It should be clear now how this works. "units that are part of the graphical target" can only mean "units that are wanted/required by the graphical target" but that is basically all the units that are started when you boot your system, because multi-user.target is a part of graphical.target. And your sleep service is a part of multi-user.target, so in fact you're saying you want to delay starting the sleep service until the sleep service completes
    What you probably intended was to delay all units that are a part of graphical.target but not of multi-user.target until after the sleep service. I can't think of an easy (or even good) way to do this and this post is already too long, so I'll table that for now.

  • Should You Buy An iPhone Now, Or Wait For The Next One?

    Great article by HuffPost Tech.
    The most common thing I get asked whenever I tell anyone I'm a tech writer is some version of the question: "Should I get a new iPhone now, or should I wait until the next one comes out?" It is as though my business card should read not "Technology Writer," and instead "iPhone Psychic"
    Not that I am not happy to prognosticate! And in that spirit, here's a look at the questions on everyone's mind: Should I buy an iPhone now? And if not now, when?
    First, let me say that I am fascinated by the peculiar kind of panic that I encounter in people I meet who are deciding on a purchase date for their next Apple phone. I call it the iSenberg Uncertainty Principle: Potential iPhone buyers exist in a constant state of anxiety, perpetually worrying that purchasing an iPhone on any given day will mean that they will miss out on the inevitably cooler version with the mind-blowing new features soon down the road. The Cupertino Sword of Damocles constantly dangles over their heads, threatening to pierce them with unhipness and iShame.
    Here is one solid piece of advice I can offer to help you avoid the Sword: Do not buy any new iPhone until September. Apple has an annual media conference each September, and every blog with the word 'Mac' in the title is reporting that Steve Jobs is going to do his black turtleneck thing and introduce some kind of new iPhone there. The September Media conference is generally used to present the new iPods, but as All Things Digital reports, Apple plans to "commandeer" the conference for its official iPhone announcement.
    Apple is long overdue to release its new iPhone anyway, if history is any indication. Look at this handy little timeline:
    June 2007: original iPhone released
    June 2008: iPhone 3G released
    June 2009: iPhone 3Gs released
    June 2010: iPhone 4 released
    June 2011: Nothing!
    In other words, the 5th generation iPhone is already a month late, so it makes sense that the rumors are swirling. Apple's tardiness can be explained by the fact they've actually already released two iPhones in 2011 -- the Verizon iPhone in February and the unlocked iPhone 4 in June. Their schedule is all screwy, like a traveler trying to get over jet lag. But all signs point to them getting right with a September Apple iPhone release.
    So what jaw-dropping new feature will this iPhone boast? We're hearing that the "iPhone 4S," as it is rumored to be called, won't be the dramatic re-imagining that many of us have come to expect with each new iPhone release. Tech blogThis Is My Next thinks that it will be thinner and lighter, and that it will run on a new chip; the New York Times thinks that it will be the same dimensions as the iPhone 4 but that it will be cheaper. Bloomberg agrees with This Is My Next on the chip and adds that the rear-facing camera will upgrade to 8 megapixels from 5 megapixels.
    Now, even if you're just a normal, non-geek iPhone user, who doesn't care if the rear-facing camera doubles its megapixel count, or if Apple has changed the manufacturer of its data processors, or whatever, you still need to at least wait for the alleged iPhone announcement, and here's why: if history is any indicator, the introduction of a newer iPhone model is accompanied by a drop in price of older iPhone models. When the iPhone 3GS was announced, the price of the iPhone 3G dropped by $100; when the iPhone 4 was announced, the price of an iPhone 3GS also dropped by $100. Even if you know that you're not going to drop $400 on whatever iPhone Apple begins peddling in September, there is no sense in paying more money for an iPhone 4 or 3Gs now when the base price of both seem like locks to drop in two months.
    But before we start fantasizing, how can we be so certain that Jobs is even going to announce an iPhone in September if Apple hasn't so much as indicated such a thing? How do we know that all of these rumors weren't just started by lonely nerds like me and my co-workers emailing each other from our mother's basements, inciting iPhone rumors all on our own?
    Well, first of all, I don't live with my mother; and second of all, the new iPhone rumors have sprung forth from two reliable sources held in high journalistic regard.
    The first is esteemed, award-winning tech journalist John Paczkowski of All Things Digital, who blazed iPhone prognostication trails by predicting back in April that an updated iPhone 4 would be unveiled at the September Apple music Conference and has steadfastly maintained the claim is true through June and into July. In fact, he confirmed as recently as July 5 that a shiny new iPhone looked to be in the early stages of supply chain production, and that people close to the company still believe that the new iPhone would be ready for the Jobs treatment in September.
    So there is Reliable Source One.
    Reliable Source Number Two is the Wall Street Journal, not exactly a one-laptop operation. The paper gives "the end of September" as a target launch date, which squares up with both Paczkowski's prediction of a September announcement and release. This doesn't even mention This Is My Next's separate prediction of a September release, nor 9to5Mac reporting that there are going to be two new iPhones in September, one low-end and high-end. But now we're falling down the rabbit hole and into the basement again, so let's focus:
    There is likely to be a new iPhone in September. It will likely affect the price of all the other iPhones. The iPhones available now -- the iPhone 4 and the iPhone 3Gs -- will probably be cheaper in two months. Unless you drop your current iPhone in a pool, a bathtub or a volcano, do not buy an iPhone until Steve Jobs opens his beautiful brilliant mouth at the Apple conference in early September. When the post-turtleneckian dust settles, we'll have a clearer picture of whether or not this rumored new iPhone is worth the money. And then we can talk about--well, whether or not you should buy an iPhone now, or wait until the next one comes out.
    http://www.huffingtonpost.com/2011/07/12/iphone-release-5-september_n_896345.html

    Apple has two prototypes out testing now.  One is a thinner totally redesigned case.  The problem with it is that Foxconn can't seem to build it.  Hence the delay.  The other prototype uses the existing case, but with updated (read dual core) internals.  If they can get production up by September the first phone will be released and will be the iPhone 5.  If they cannot, then the second prototype will be released as the iPhone 4GS.  

  • Hi! My name is Eirik Solberg and i have been waiting for the iPhone 5 unlocked version at apple store us seens the iphone 5 came out at 12 september.

    Hi!
    My name is Eirik Solberg and i have been waiting for the iPhone 5 unlocked version at apple store us seens the iPhone 5 came out at 12 september.
    Therefor i will be very happy if you guys could tell me when iPhone 5 unlocked version will come out for sale at apple store us.
    Best Answer!

    Oh, okey, but when do you guys think it will come out? I was hoping for Black Friday, but it didn't came out as i was hopning :/ When do you think it will come? Is it like the last part of november or the begining of desember or will it be in the end of this desember?

  • What do you prefer a tablet with a flash browser or a million apps?(Waiting for the android compabilty)

    Dont get me wrong, i love my playbook but this wait for the Android compability player its taking too long, and we are not getting any new and valuable apps lately.
    What do you think?
    PS: RIM Hurry up!

    cmarcin wrote:
    What do you think?
    I think I might agree with you!
    1. If any post helps you please click the below the post(s) that helped you.
    2. Please resolve your thread by marking the post "Solution?" which solved it for you!
    3. Install free BlackBerry Protect today for backups of contacts and data.
    4. Guide to Unlocking your BlackBerry & Unlock Codes
    Join our BBM Channels (Beta)
    BlackBerry Support Forums Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • Thanks for the reply to my question regarding sound in iMovie and sending me the online links.  however the online links are impossible to play as they upload too slowly with the result that the playing keeps stopping waiting for the content to catch up

    Thanks for your reply to my question regarding sound in iMovie.  However I cannot follow the links you sent as they upload too slowly and therefore the instructional movie keeps stopping waiting for the content toload.  Surely theremust be a solution for this??
    Thanks in advance
    lolly

    Please continue posting in your original thread.
    With the amount of traffic on these forums it is impossible to chase around finding this.

  • Timed out waiting for the CRS stack to start on Second node.

    Hi,
    I am trying to setup 2 node 11gR2 RAC in vmware. I face the Timed out waiting for the CRS stack to start error on second node while running root.sh.I checked the cluster log files located in  /u01/app/11.2.0/grid/log/node1/alertnode2.log it shows as mentioned below.But when i logged into ASM instance and checked the diskgroup and it is in mount state on both nodes,So i am really confused why i ended up with error in 2nd node on running root.sh. Can anyone tell me how to correct this error or any other checking needs to be done?
    /u01/app/11.2.0/grid/log/node1/alertnode2.log
    [ohasd(23261)]CRS-2765:Resource 'ora.crsd' has failed on server 'node2'.
    2014-01-21 21:40:10.314
    [crsd(25309)]CRS-1006:The OCR location +DATA is inaccessible. Details in /u01/app/11.2.0/grid/log/node2/crsd/crsd.log.
    2014-01-21 21:40:11.217
    [ohasd(23261)]CRS-2765:Resource 'ora.crsd' has failed on server 'node2'.
    2014-01-21 21:40:12.422
    [crsd(25335)]CRS-1006:The OCR location +DATA is inaccessible. Details in /u01/app/11.2.0/grid/log/node2/crsd/crsd.log.
    2014-01-21 21:40:13.327
    [ohasd(23261)]CRS-2765:Resource 'ora.crsd' has failed on server 'node2'.
    2014-01-21 21:40:14.514
    [crsd(25356)]CRS-1006:The OCR location +DATA is inaccessible. Details in /u01/app/11.2.0/grid/log/node2/crsd/crsd.log.
    2014-01-21 21:40:15.439
    [ohasd(23261)]CRS-2765:Resource 'ora.crsd' has failed on server 'node2'.
    2014-01-21 21:40:15.440
    [ohasd(23261)]CRS-2771:Maximum restart attempts reached for resource 'ora.crsd'; will not restart.
    root.sh output
    [root@node2 ~]# /u01/app/11.2.0/grid/root.sh
    Running Oracle 11g root.sh script...
    The following environment variables are set as:
        ORACLE_OWNER= oracle
        ORACLE_HOME=  /u01/app/11.2.0/grid
    Enter the full pathname of the local bin directory: [/usr/local/bin]:
    The file "dbhome" already exists in /usr/local/bin.  Overwrite it? (y/n)
    [n]: y
       Copying dbhome to /usr/local/bin ...
    The file "oraenv" already exists in /usr/local/bin.  Overwrite it? (y/n)
    [n]: y
       Copying oraenv to /usr/local/bin ...
    The file "coraenv" already exists in /usr/local/bin.  Overwrite it? (y/n)
    [n]: y
       Copying coraenv to /usr/local/bin ...
    Entries will be added to the /etc/oratab file as needed by
    Database Configuration Assistant when a database is created
    Finished running generic part of root.sh script.
    Now product-specific root actions will be performed.
    2014-01-21 21:37:55: Parsing the host name
    2014-01-21 21:37:55: Checking for super user privileges
    2014-01-21 21:37:55: User has super user privileges
    Using configuration parameter file: /u01/app/11.2.0/grid/crs/install/crsconfig_p                   
    arams
    LOCAL ADD MODE
    Creating OCR keys for user 'root', privgrp 'root'..
    Operation successful.
    Adding daemon to inittab
    CRS-4123: Oracle High Availability Services has been started.
    ohasd is starting
    CRS-4402: The CSS daemon was started in exclusive mode but found an active CSS daemon on node 11gdb, number 1, and is terminating
    An active cluster was found during exclusive startup, restarting to join the cluster
    CRS-2672: Attempting to start 'ora.mdnsd' on 'node2'
    CRS-2676: Start of 'ora.mdnsd' on 'node2' succeeded
    CRS-2672: Attempting to start 'ora.gipcd' on 'node2'
    CRS-2676: Start of 'ora.gipcd' on 'node2' succeeded
    CRS-2672: Attempting to start 'ora.gpnpd' on 'node2'
    CRS-2676: Start of 'ora.gpnpd' on 'node2' succeeded
    CRS-2672: Attempting to start 'ora.cssdmonitor' on 'node2'
    CRS-2676: Start of 'ora.cssdmonitor' on 'node2' succeeded
    CRS-2672: Attempting to start 'ora.cssd' on 'node2'
    CRS-2672: Attempting to start 'ora.diskmon' on 'node2'
    CRS-2676: Start of 'ora.diskmon' on 'node2' succeeded
    CRS-2676: Start of 'ora.cssd' on 'node2' succeeded
    CRS-2672: Attempting to start 'ora.ctssd' on 'node2'
    CRS-2676: Start of 'ora.ctssd' on 'node2' succeeded
    CRS-2672: Attempting to start 'ora.drivers.acfs' on 'node2'
    CRS-2676: Start of 'ora.drivers.acfs' on 'node2' succeeded
    CRS-2672: Attempting to start 'ora.asm' on 'node2'
    CRS-2676: Start of 'ora.asm' on 'node2' succeeded
    CRS-2672: Attempting to start 'ora.crsd' on 'node2'
    CRS-2676: Start of 'ora.crsd' on 'node2' succeeded
    CRS-2672: Attempting to start 'ora.evmd' on 'node2'
    CRS-2676: Start of 'ora.evmd' on 'node2' succeeded
    Timed out waiting for the CRS stack to start.
    Regards,
    007

    Hi,
    Are you trying to install on Vmware Workstation or Vmware Server?
    If you are using vmware server add below line in your .vmx file for both node
    scsi1.sharedBus = "VIRTUAL"
    First check which scsi serial number are you using as above I have selected scsi1 serial during disk addition, 

  • Disk Utility "waiting for the drive"

    I'll be calling Applecare on this, but would like to know if anyone else has experienced this problem:
    I have a 2 month old MBP with the following model Super Drive:
    HL-DT-ST DVDRW GSA-S10N (according to System Profiler, it can write to all formats including -R, +R, DL). From another thread, I assume this is an LG?
    I decided to test the drive - made a short 40 second movie and created a disk image. Upon opening Disk Utility and inserting a DVD (Verbatim +R), I got the following: "waiting for the drive" for 5 minutes. Ejected the disk and tried again - same result.
    On the third try, it actually recognized the DVD, but only gave me the option to burn at 4x or 8x. I usually burn at the slowest speed available (2x), so I cancelled, ejected the disk and tried again. Fourth and fifth tries: no action, just "waiting for the drive".
    I then tried to use Toast with the Super Drive; before inserting the disk, I set Toast to burn at 2x, but once I inserted the disk, Toast recognized it, but changed the available burn options to 4x or 8x.
    Next I connected my external burner and got the options to burn at 2.4x, 4x, or 8x both in Disk Utility and Toast.
    I then used the same disk on my iMac; tried both the Super Drive and my external burner (using both Disk Utility and Toast with both) and got the following burn options:
    iMac Super Drive/Disk Utility: 2.4x, 4x, 8x
    iMac/external burner/Toast: 2x, 4x, 6x, 8x
    There seem to be a couple of issues:
    The "waiting for the drive" problem (what could possibly cause this?)
    The "non-availability" of a slow burn speed of the Super Drive
    And a third problem: this DVD drive is the slowest I've ever experienced; it took 50 seconds for the icon to appear on the desktop after inserting the DVD vs. 7 seconds on the iMac (this is the DVD I burned using Toast/exterbal burner,testing it on a TV and the iMac). It played fine on all three.
    Has anyone encountered a similar "waiting for the drive" issue and/or the fact that this drive takes a very long time to recognize/read a DVD?
    Appreciate any input!

    I spoke with a product specialist at Apple and it was agreed that we'd wait to see if the problem persisted; at that time, we'd talk about getting the drive replaced.

  • Waiting for the new Q10 to hit sprint but what will happen to my email?

    I am currently waiting for the new Q10 to hit sprint.  but i am hearing that i will no longer be able to use my blackberry.net email with the new blackberry.  i currently use it as my primary email.  1st is it true they will no longer have blackberry email and if so what steps do i need to take in order to make a smooth transistion?
    Solved!
    Go to Solution.

    1. yes, the blackberry.net email is no longer available... and quite honestly, in my opinion, this is a good thing. The blackberry.net email is not available anywhere except ON your BlackBerry, you cannot view it anywhere but on the handheld device itself and no backup otherwise. Get a free gmail, yahoo or Outlook.com account.
    2. Read this:  Article ID: KB33260 BlackBerry (hosted) email address forwarding for BlackBerry 10 OS
    So, create and start using the other free email account now. When you finally transition over to BlackBerry10, you will have your solution in place for forwarding the blackberry.net email account.
    1. If any post helps you please click the below the post(s) that helped you.
    2. Please resolve your thread by marking the post "Solution?" which solved it for you!
    3. Install free BlackBerry Protect today for backups of contacts and data.
    4. Guide to Unlocking your BlackBerry & Unlock Codes
    Join our BBM Channels (Beta)
    BlackBerry Support Forums Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • Should I get a 2013 macbook air, a macbook pro 13 inch, a regular macbook pro or wait for the next generation of haswell macbook pros?

    So im a little confused, i dont know what macbook should i get.
    I want a macbook for:
    surf the web
    Do some school work like powerpoint, excel, word etc.
    store music and pictures
    This macbook i will probably have it for like 3 years so i wanna make sure the macbook i choose will last.
    I really would like a macbook pro but the thing is that i`ve have been hearing that a new generation of retina macbook pros will be coming this fall so i wanna know your opinion if it is worth waiting for the next gen of macbooks.
    thanks

    For what your doing, a $400 PC laptop will do and if it gets lost or stolen (as long as you make backups) it's really no big deal. Buy another.
    A Mac will set you back almost $2000 for the same performance by the time you thrown in the 3 year warranty, tax and backup drives etc.
    The higher end Mac's closer to $3000.
    Also after 3 years after spending so much money you want to fix it to keep it going, a cheap PC you just get a new one.
    In some instances it's not smart to get a Mac, they are often a target for theft and if your young, your prey. 

Maybe you are looking for