Thread.sleep() issue

Hi,
It seems that Thread.sleep is inaccurate :
Date d1 = new Date();
try {
     Thread.sleep(200);
} catch (InterruptedException e) {
     // TODO Auto-generated catch block
     e.printStackTrace();
Date d2 = new Date();
System.out.println(d2.getTime() - d1.getTime());
I ran this multiple times and it returns me either 187 or 188 either 203 or 204
Is there any explanation about this ?
Thank you

If you read the docs for sleep(), you'll see it says, "Causes the currently executing thread to sleep (temporarily cease execution) for the specified number of milliseconds, subject to the precision and accuracy of system timers and schedulers." On Windows, the system clock is only accurate to about 10-15 ms.

Similar Messages

  • What's wrong to put Thread.sleep in a session bean?

    i am working on a trading platform and i think there is a design flaw. The part i am working on is the Order Management module. When an order value object is published to a JMS topic and picked up by a MDB. The MDB, in turn, calls a session bean (could be stateless, I didn't check), OrderEngineBean. After this bean saves the order vo into database and broadcast the message to all involved parties, it suspends for 12 sec, using Thread.sleep, so other parities might have a chance to update the vo. If no update occurs, the order is considered expired and abandoned.
    It looks awkward to me to use a Thread.sleep in a session, but I haven't come out with a better idea to deal with the scenario like above.
    Anyone can help me out?
    Thanks a lot!
    Sway

    Setting the property "max-beans-in-free-pool" is not the answer to this issue. By setting this property to 1, the container merely instantiates and keeps one instance of the bean in the free pool at the "start" of the app server. But if the container comes across more than one requests for the same EJB simultaneoulsy, then it will create new instances at that time to handle the requests simultaneously.
    You are seeing intermixed log messages between two threads because these messages are being logged from two different instances of the EJB and NOT the same instance of the EJB. The container does synchronizes the calls on "a method" on "a instance". So what you are seeing are the messages coming from "a method" on "two different instances" of the same EJB.
    You can refer to the EJB 2.0 specification section 6.11.6 Non-reentrant instances for details about simultaneous access to the same session object.

  • Work manager using thread.sleep or delay doesn't work

    Hi all,
    I used Spring framework and oracle weblogic 10.3 as a container.
    I used workmanager for manage my thread, I already made one thread that managed by workmanager. Fortunately spring provide the delegation class for using workmanager, so I just need to put it on applicationContext.xml.
    But when I put the "while" and TimeUnit for sleep the process on desired delayed time, the deployment process never finished. It seems the deployment process never jump out from while loop for finishing the deployment.
    Why?, As I know using typical thread, there is no issue like this. Should I use another strategy for make it always loop and delay.
    This is my simple code :
    import java.util.concurrent.TimeUnit;
    import org.springframework.core.task.TaskExecutor;
    public class TaskExecutorSample{
         Boolean shutdown = Boolean.FALSE;
         int delay = 8000;
         TimeUnit unit = TimeUnit.SECONDS;
         private class MessageGenerator implements Runnable {
              private String message;
              public MessageGenerator(String message){
                   this.message = message;
              @Override
              public void run() {
                   System.out.println(message);
         private TaskExecutor taskExecutor;
         public TaskExecutorSample(TaskExecutor taskExecutor){
              this.taskExecutor = taskExecutor;
              try {
                   while (shutdown.equals(Boolean.FALSE)){
                        this.printMessage();
                        unit.sleep(delay);
              } catch (Exception e) {
                   System.out.println(e.getMessage());
         public void printMessage() {
              taskExecutor.execute(new MessageGenerator("Print this Messages"));
    Really thanks in advance.
    Regards,
    Kahlil
    Edited by: Kahlil on May 26, 2010 2:38 PM
    Edited by: Kahlil on May 26, 2010 2:42 PM

    Hi,
    i m not sure whether it's an issue with Spring or not. But i tried using Thread.sleep(1000) in a Simple webapplication to see Workmanagers works properly or not. I found that it works extremely great: http://weblogic-wonders.com/weblogic/2010/01/24/workmanager-at-webapplication-level/
    Thanks
    Jay SenSharma

  • Can LabVIEW threads sleep in increments less than a millisecon​d?

    I am aware of two LabVIEW sleep functions:
    1) All Functions | Time & Dialog | "Wait (ms)"
    2) All Functions | Time & Dialog | "Wait Until Next ms Multiple"
    In this day and age, when 3GHz processors sell for less than $200, it seems to me that a millisecond is an eternity. Is there any way to tell your LabVIEW threads to sleep for something less than a millisecond?
    In Java, the standard Thread.sleep() method is written in milliseconds [sorry, the bulletin board software won't let me link directly]:
    http://java.sun.com/j2se/1.4.2/docs/api/java/lang/​Thread.html#sleep(long)
    but there is a second version of the method that allows for the possiblity of nanoseconds:
    http://java.sun.com/j2se/1.4.2/docs/api/java/lang/​Thread.html#sleep(long, int)
    So there does seem to be some consensus that millisecond sleep times are getting a little long in the tooth...

    Hi Tarheel !
    May be you should get some idea of the kind of timing accuracy that you can reach when using a loop.
    Use the attached vi, which runs repeatedly a For loop (10 iterations) reading the time, then calculate the average and standard deviation of the time difference between the loop iterations.
    On my PC (P4, 2.6 MHz, W2K), I get a standard deviation of about 8 ms, which appears to be independent of the sleep duration I asked for.
    Same thing with a timed loop.
    Under MacOS X (PowerBook, 1.5GHz), the SD falls down to 0.4 ms.
    I tried to disable most of the background processes running on my PC, but I could not get a better resolution.
    Seems that the issue is not in LV but on the way the OS manage its internal reference clock.
    Since you are a Java afficionado, may be you could produce something equivalent ?
    A proof that nanosecond resolution is available on a PC could be of great help to NI. Why bother with costly timers on DAQ cards ?
    By the way, it took me about one minute to create the attached vi. I would like to have an idea of the time required to do the same thing in Java.
    Tempus fugit...
    CC
    Chilly Charly    (aka CC)
             E-List Master - Kudos glutton - Press the yellow button on the left...        
    Attachments:
    Timing precision.zip ‏11 KB

  • Java Thread.sleep() on Windows 8 stops in S3 sleep status

    There's a desktop application that uses Thread.sleep() to achieve long (minutes or hours) delays. This same application has been working fine from Windows XP through Windows 7. The application calculates how far in the future it needs to do something, then hits a Thread.sleep(msToWait). This has been working fine, even if the system happens to go into S3 or S4 sleep state during the wait.  All is good as long as the machine is awake at the time when the sleep expires.
    As of Windows  8 (and 10), though, the code after Thread.sleep() does not execute "on time" if the machine has been in S3 during the sleep interval. It appears that the machine begins executing code at "msToWait" plus the time the machine has been in S3.
    Earlier versions of Windows did not exhibit this behavior; code after Thread.sleep() waited the right amount of time, irrespective of sleep status.
    A test program and procedure were developed. The procedure is to 1) run the program, 2) cause the machine to sleep for about a minute, then 3) wake the machine and wait for the program to finish.
    If this the program is run on Windows 10 (reporting as 8) with JVM Version: 25.40-b25, it fails (the 63589 corresponds to the minute that the machine was in S3):
    C:\Users\Tester\Downloads>SleepTester.exe
    Wed Apr 01 10:47:35 PDT 2015 Using default number of minutes: 5
    Wed Apr 01 10:47:35 PDT 2015 You can use "SleepTester -minutes 10" to have it sleep for 10 minutes, for example.
    Wed Apr 01 10:47:35 PDT 2015 JVM Version: 25.40-b25 Windows Version: Windows 8
    Wed Apr 01 10:47:35 PDT 2015 The program will now wait for 5 minutes.  Expect wrap-up at Wed Apr 01 10:52:35 PDT 2015
    Wed Apr 01 10:53:38 PDT 2015 The system has come through the Thread.sleep(300000).
    Wed Apr 01 10:53:38 PDT 2015 This should be a low number: 63589
    Wed Apr 01 10:53:38 PDT 2015 This appears to be operating incorrectly...the expected sleep time has NOT been achieved.
    Wed Apr 01 10:53:38 PDT 2015 Program is ending.
    If the process is run on Windows 7, it does not fail:
    Wed Apr 01 17:12:18 EDT 2015 Java Runtime Version: 1.8.0_31-b13 JVM Version: 25.31-b07 Windows Version: Windows 7
    Wed Apr 01 17:12:18 EDT 2015 The program will now wait for 6 minutes.  Expect wrap-up at Wed Apr 01 17:18:18 EDT 2015
    Wed Apr 01 17:18:18 EDT 2015 The system has come through the Thread.sleep(360000).
    Wed Apr 01 17:18:18 EDT 2015 This should be a low number: 0
    Wed Apr 01 17:18:18 EDT 2015 Program is ending.
    This is the guts of  test program:
    [code]
    public static void main(String[] args) throws Exception {
       System.out.println(new Date() + " Java Runtime Version: " + System.getProperty("java.runtime.version") + " JVM Version: " + System.getProperty("java.vm.version") + " Windows Version: " + System.getProperty("os.name"));
       long msDelay = mMinutes * 60 * 1000;
       long wakePoint = new Date().getTime() + msDelay;
       System.out.println(new Date() + " The program will now wait for " + mMinutes + " minutes. Expect wrap-up at " + new Date(wakePoint));
       Thread.sleep(msDelay); // If the machine goes into S3 during this interval, it should not matter, as long as it's awake when it fires.
       System.out.println(new Date() + " The system has come through the Thread.sleep(" + msDelay + "). ");
       long msAccuracy = Math.abs(new Date().getTime() - wakePoint);
       System.out.println(new Date() + " This should be a low number: " + msAccuracy);
       if (msAccuracy > 1000) System.out.println(new Date() + " This appears to be operating incorrectly...the expected sleep time has NOT been achieved.");
       System.out.println(new Date() + " Program is ending.");
    [/code]
    Was the change in behavior from earlier versions of Windows intentional?  Is it something that the JVM is controlling, or is there a difference in the underlying OS that is beyond the control of the JVM?

    I might need to create a work-around whereby I maintain a watch of the msDelay and the system clock.  If there is a discontinuity (which would only happen on Windows 8 or higher), then I would repair the msDelay value.
    A separate (but related) question:
    Can I conclude that since older JVM's running on Windows 8 still have the problem, that it's a Windows issue, and not a JVM issue?

  • More no sleep issues and sleep troubleshooting

    My one year old 20" Intel iMac Core 2 duo has just started not scheduled sleeping (will sleep when directed though...you know what I mean)...this really makes me mad because it's so hard to fix. I had this happen on my old G5 iMac and it took a month and two visits to the Mac geniuses to figure out. Anyway here are the things I tried with direction from this board and an Apple CS rep. (still no joy):
    -removed all USB and firewire devices except keyboard and mouse
    -made sure bluetooth is turned off (i had a bluetooth mouse that used to wake up my old G4 iBook)
    -made sure that windows sharing is off as well as printer sharing and personal file sharing (even though OSX is perfectly capable of sleeping with printer sharing and personal file sharing on while other computers are not connected. Not so with Windows file sharing on in my experience)
    -internet sharing off
    -reset PRAM
    -reset SMU
    -deleted cache
    -repaired disk permissions
    -booted from install disk and repaired disk (no repairs were necessary according to disk utility)
    -trashed preferences file (ouch, this really ***)
    -created new user account to test and still won't sleep
    -booted in safe mode (sleep works!!!!! but only in safe mode)
    These are the thing's I've tried...if there's anything any one can recommend on top of these please reply. Since this has been such a pervasive problem with non-laptop Macs I'd really love to see a troubleshooting flow chart for these sleep issues. I'd write it myself if I could get some guidance on which procedure to try first and so on...
    Dennis (den.thed) seems to be the sleep guru. If you've got time to weigh in I'd appreciate it before I format my HD and start from zero day.
    Cheers, -JV

    One thing that work for me was the following: I did all the hints possible but nothing worked until I decided to look at the Console logs, something was preventing the system from going to sleep, I looked at the logs and I had a repeating message: "com.apple.nis.ypbind: domainnname not set. aborting...throttling respawn:will start in 10 sec" it means its an active process. In fact there is a thread here that points toward this message. The message went away with the following fix: in Terminal I typed: sudo domainname example.com ,upon entering I noticed that the Console messages stopped immediately. So the next step was to observe if the computer would sleep on its own and YES it did.
    So this may not fix your sleep issues if there is another process involved, but I think the symptoms are very similar. I have also read that some caches folders are corrupt (if upgrading from Tiger) and since repairing permissions is a whole 'nother story these may not be purged at all thus causing conflicting processes and misdirected maintenance scripts that run in the background. If anything new I will kee posting. hope it works

  • New MBA Sleeping Issues

    I have a brand new 13" MBA and several times now have come back to a closed (clamshelled) computer with it dead or extremely hot in my backpack after several hours. It's not properly sleeping.
    Most of the threads about sleep issues are related to external monitors. I don't use one. I turned off the setting for Bluetooth waking the computer. I don't know where else to look.
    Any thoughts?

    Test after each of the following steps that you haven’t already tried:
    Step 1
    Take all the steps suggested in this support article. That's the starting point for any further effort to solve the problem. Skipping any of those steps may mean that the problem won't be solved. Note that, as stated in the article, the computer  will not sleep if Internet Sharing is enabled.
    Step 2
    From the menu bar, select
     ▹ System Preferences ▹ Accessibility ▹ Speakable Items: Off
    Step 3
    Select
     ▹ System Preferences ▹ Bluetooth ▹ Advanced...
    and uncheck both boxes marked
    Open Bluetooth Setup Assistant at startup if...
    Step 4
    Reset the SMC.
    Step 5
    Disconnect all wired peripherals except those needed for the test, and remove all aftermarket expansion cards, if applicable. Start up in safe mode and log in to the account with the problem. You must hold down the shift key twice: once when you boot, and again when you log in.
    Note: If FileVault is enabled, or if a firmware password is set, or if the boot volume is a Fusion Drive or a software RAID, you can’t do this. Ask for further instructions.
    The login screen appears even if you usually 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 much slower to boot and run than normal. Don’t launch any applications at first. If sleep still doesn’t work properly, back up all data and reinstall the OS. After that, if you still have the issue, make a “Genius” appointment at an Apple Store to have the machine tested.
    If sleep now works as expected, go on to the next step.
    Step 6
    Still in safe mode, launch the usual set of applications that are running when you have the problem, including your login items, one at a time, testing after each one. Some applications may not work; skip them. You might be able to identify the cause of the problem this way.
    Step 7
    If sleep is still working after you’ve launched all the usual applications, reboot as usual (not in safe mode) and test again. If sleep still works, you’re done, at least for the moment.
    If you still have the sleep issue after booting out of safe mode, post again.

  • Mac book pro 10.5.7 sleep issue..... not even sydney genius bar can help me

    ok hey guys, this is my first ever post on a support forum so please help me out!
    I'll give any specific hardware info if needed later on but this is the basics:
    i have had my mbp for over a year and 6months into it my mbp started going into sleep mode for no reason ...and no im not simple the energy settings are set to never sleep so its not that. Since then i have tried and tested everything under the sun to resolve the issue i have been to the genius bar and booked it in several times, each time they tell me they can not find any problem. I have had the logic board replaced - i have tried removing the p.list files, resetting pram thingy the battery test thing....everything...i have looked on endless forums for a resolution but nothing works!, it will go to sleep at random times generally when im doing alot of things on it it can run fine for days maybe sometime weeks but then its starts playing up again. When it does sleep the screen goes blank and the power light pulses but worst it cuts the internet connection which is terrible coz i have a time capsule and it cuts that link as well and messes that up entirely! sometimes it will just keep cutting out every 20-40 seconds untill i wake it by tapping the space bar or moving my mouse sometimes it just shuts down completely - i have done a compete erase & reinstall but ill b honest i still reinstalled some programs from my backups that cant be downloaded anymore (isquint etc) coz the genius guys said maybe a program is corrupting the hardware but if anyone has any ANY ideas or has the same problem please! tell me - im sure i could add more info n stuff but if u want 2 ask me specifics then i will answer anything to help
    thanx again guys.
    i should say at this point the only relief im getting to stop it from sleeping is if i disconnect the power adapter and use the battery that seems to stop it, but it has crashed(slept) on battery power as well but as of today doing this seems to help ....hasn't crashed since writting this! LOL

    Has anyone got any assumptions on suspect software that may cause my problem??
    I see that louie has a possible response for you. I had forgotten about that problem.
    lastfm, transmission or handbrake. Can anyone confim issues after installing these apps?
    if not these softwares then im convinced im dealing with a power issue.
    I would be doubtful (although not completely dismissive) of anything like these being the source of your problem.
    the genius bar has said it may b an enviromental issue. this also may be the case, tho not so much recently. They said perhaps magnectic fields may cause it 2 go 2 sleep and its true moving my MBP around does seem to settle it for instance if i move it out of my room im yet to see any of my sleep issues occur
    The movement sensor might be involved, as also louie's excellent suggestion of the temp sensor. It is difficult to know how to test these effectively and might need more tools than the GB can muster.
    But i dont live in a electricity tower and i did move my MBP to the other side of my room where it worked for a good month - and then started again with the sparatic sleeping.
    It is hard to disprove a negative. The only way to bring some sort of evidence to the table if there were some such interference would be to use the computer for an extended period away from where you are using it now. If it works without problem in (say) Starbucks or some other neutral area, and then fails within a few minutes of returning to your home, then there is something stronger to work with. Then you can start to track down some external source, I would guess.
    So i will try a safe start as graham had suggetsed as this seems as a simple enough fix - but i do run a time capsule, ext 1TB HD, Wireless mouse etc ..which i presume will not work in safe mode .... and is the idea to just keep safe mode on untill it does crash again or will just starting up on safe mode then restarting solve the issue?
    Time Machine ought to work in Safe Mode; and I would not suggest working that way for a lengthy period of time: just to start it up perhaps to clear something that is interfering. But what you write here is of interest: (A) The HD -- what is it (brand, etc, and how formatted) and how connected; plus the wireless mouse? What brand is that (and I presume you mean Bluetooth)?
    As for A weak diode..I dunno what that is or how 2 check it
    Right. I couldn't either, and most shops won't: they would just replace the board. There is a shop here . . . but that is too far for you.
    i think the battery is ok ..as i said it performs better at this point when i disconnect the power...but not always... i had a terrible day yesterday when it would keep going to sleep everytime i reconnected the power, if i try 2 persist it will keep going back 2 sleep ever 30 seconds untill i eaither just leave it be for a while or untill it just turns off completely!
    That suggests, as I mentioned earlier, something awry with the battery/power combination; especially if the performance is not consistent. A battery should deteriorate gradually, not come and go.
    If it does turn off when i turn it back on it wont even get to the grey apple logo it just keeps turning off after 2-5 seconds (turning off not sleeping)
    so im at a loss why that is!
    No power. You have to wait a while until the power level is brought up to a workable level.
    The power cord seems fine all the pins spring out - the middle spring is smaller than the others tho.
    Mine too. That seems OK.
    Do post those logs. Someone might see the answer.

  • Battery and Sleep issues. Is this "normal"?

    Hey guys, ever since day 1 My new MBP has been experiencing the sleep issue where in sleep the battery would lose about 1-2%/hour. I would go to sleep with the battery at 100%, and wake up to only about 87%. Also, when it was new the battery had about 4650 for full charge capacity, now its showing only 4540 after 10 cycles!!! Is this normal? Please help my MBP is less than 2 weeks old I have owned the previous MBP model, and the battery life during sleep was considerably better than this, and also it took less time to charge the battery!
    Charge Information:
    Charge remaining (mAh): 3463
    Fully charged: No
    Charging: Yes
    Full charge capacity (mAh): 4540
    Health Information:
    Cycle count: 10
    Condition: Good
    Battery Installed: Yes
    Amperage (mA): 881
    Voltage (mV): 12070
    *I have also just updated the upgrade to 10.5.6. Will update and report if this will help with the sleep/battery issue.
    Thanks for your help!
    Message was edited by: Flyhighalwayz

    Reset the SMC (System Management Controller) and re-calibrate the Battery then see how it behaves ...

  • 10.9.2 update sleep issue with NEC monitors confirmed

    After updating from Mac OS10.9.1 to 10.9.2, both my friend, who lives in another city, and I find that attempting to put our MacPros (2010, think his is a 2009 model) attached to a NEC PA 301 (mine) or PA 271 (his) series pro monitors to sleep experience a frozen screen and cursor followed about a minute later with an expected and desired sleep mode. My computer does something slightly different than his in that the background of the dock turns a golden yellow when the screen freezes. Both systems start up from sleep correctly.
    If I only use my Apple 30 inch Cinema Display, the sleep mode works as expected.
    Spent two hours with Apple Care (level one and level two) people that didn't have a clue what was going on. Called NEC and they had no explaination.
    Any thoughts of wisdom of what is going on with the sleep issue that occurred right after we put the 10.9.2 update?

    Andrew,
    This is not an AppleCare issue, it is an Apple bug that you didn't want and  will be addressed by AppleCare representatives. Your are helping out the communnity.  If they don't believe you, refer them to this discussion. They never tell you about the 90 day software exception clause for free techsupport when one updates to a major MacOS change. I found that sending in a known bug where many people are experiencing it through AppleCare where they end up uploading your OS data to their engineers gets more attention than going to Apple.com/feedback. The more people who report it, the quicker it gets addressed.
    As far as going back to 10.9.1, didn't you do a back-up before you did an Apple "fix" that you can go back to? My problem is that every day my calendar, documents, email, etc change a lot so I am reluctant to go back to my back-up which I hate to say is only on TimeMachine now. My other backups (mirror copies) occur nightly and I didn't notice this bug till a day later.
    You pay good money for only quality equipment so a wierd bug like this should not occur on a little update.
    I have reported this to Apple and NEC but need others to light a fire under those in charge to make a change and not have us wait for one or two updates later.
    If you want to request NEC to jump in to getting this fixed, send a message to the NEC monitor product manager (Art Marshall): [email protected]

  • Macbook Pro and external monitor sleep issues.

    I recently upgraded to a new 13 inch MacBook Pro to replace my previous one.  With the upgrade, I'm now on the latest OS and I have a Thunderbolt instead of Mini-displayport output.  I have a Dell U2410 monitor which has worked great up until now, but I now have the following behavior:
    When the laptop sleeps (or puts the display to sleep) the monitor begins to turn on and off.  It goes to powersave mode and immediately wakes up, realizes there's no signal, and goes back to powersave mode, etc etc etc. 
    When I wake the computer up from sleep, the monitor's behavior stays the same.  The laptop never detects the display and begins sending a signal.
    If I unplug and replug the adapter, all is well.
    There seem to be two separate issues: whatever signal the computer continues to send down the display cable after sleep seems to confuse my monitor, secondly, the computer never again sends a real video signal down the line after it wakes up.
    I'm on the latest 10.8.3.  My adapter is the same adapter I have been using for years, an apple mini-display port to DVI adapter.  Supposedly this adapter is still compatible with the Thunderbolt port.
    I've seen lots of issues online about wake up issues with the latest OS.  Is there a workaround for this yet or do I have to uplug my monitor anytime I sleep the computer?

    Hi Steve,
    I have had the exact same issues after adding a WD Thunderbolt Duo external drive to a Mid 2011 iMac and then daisy chaining the Dell U2410 monitor off that.
    My Mini DP to DVI cable ceased working properly - sleeps issues.
    After buying one of these adapters of Ebay:
    http://www.ebay.com.au/itm/3-in-1-Mini-Displayport-to-HDMI-with-audio-DVI-DP-ada pter-3in1-convertor-Macbook-/110861703462?pt=US_Audio_Cables_Adapters&hash=item1 9cfdf5926
    I then tried all the different cables that came originally with the Dell U2410 with that adapter, and none of then would put the U2410 to sleep properly. The backlight would stay on, or "No Displayport Cable" would float around the Dell display with the backlighting still on. Or otherwise the Dell would try to go to sleep and then wake up again and cycle like you found.
    Apples Mini DP to VGA adapter was sleep successful with the VGA cable (Analogue) but the output picture was not as sharp as DVI or Displayport, plus there was RF interference with the cable.
    After lots of internet searching I have found a near perfect solution:
    A HDMI to DVI cable with the HDMI end connected to the Ebay 3 in 1 adapter, which then connects to the Thunderbolt port.
    Connect this to DVI-D 1 on the Dell U2410.
    On the Dell in Menu - Other Settings,  disable DDC/CI
    Now in OSX Settings - energy Saver you will have to tick:
    "Put Hard Disks to sleep where possible" and select a short time frame for "Computer Sleep"
    I have found that the display would go black but the backlighting on the Dell U2410 would stay on, when the display went to sleep on the Mac as per the Energy Saver "Display Sleep" setting.
    The backlighting on the Dell would only turn off when the time for 'Computer Sleep" has elapsed and the external Thunderbolt hard disk went to sleep as well.
    The Dell U2410 would then wake up correctly as well when my iMac woke, with this setup.
    Cheapest solution for you would be to try an Apple or Ebay HDMI to DVI adapter and then use the DVI - DVI cable that came with the Dell.
    If that fails get the 3 in one Adapter and use my Mini DP/Thunderbolt to Ebay Adapter to DVI-DVI cable setup.
    I'm assuming your new Macbook Pro comes with the HDMI port ?
    I believe the Sleep Issues with this monitor are all related to appropriate signal on the cable, and only the HDMI to DVI solution will work correctly on Mac's connected to the Dell U2410.
    Good Luck. :-)

  • Waking from sleep issues

    Hi, I have a 17" G-5 i-sight imac, running os 10.4.8, and have been having wake from sleep issues similar to what others have posted. These first showed up in late August. About 25 % of the time, when waking the computer from sleep the screen remains black, and after about 10 seconds the fan starts running at full speed, The only way to stop this is to hold in the power key until the computer shuts down, and then restart. What's interesting is that this only seems to happen using my apple wireless keyboard and mouse; when using a usb keyboard and mouse there is no problem. Could this be a bluetooth-related problem? The bluetooth settings are all correct (allow bluetooth device to wake computer, etc). The apple care guy basically said he didn't know how to help me, and it's driving me crazy! The only wired keyboard/mouse I have is from my 233 bondi blue imac, so just using that to avoid the problem is not a good option. Please help!
    Jerry

    If your Mac happily goes to sleep but won't wake up--Hold down the power switch to force-reboot your machine and get it running again.
    Don't worry-your Mac isn't narcoleptic. Its Open Firmware system or NVRAM (nonvolatile RAM) is likely corrupt, and your Mac can't remember how to wake up.
    Restart your Mac and immediately hold down the Command-Option-O-F key combo until you see a somewhat intimidating command-line display that ends with the Open Fimware prompt. Type the following line:
    reset-nvram
    press the return key on your keyboard
    set-defaults
    press return
    reset-all
    press return
    Your Mac will reboot. Once it's running, put it back to sleep to test. If the problem recurs your Energy Saver preferences may be the culprit. Delete the com.apple.PowerManagement.plist file (go to Finder/Hard drive/Library/Preferences/SystemConfiguration)--don't worry, your Mac will regenerate a new one--and then restart to see if that rights the wrong.
    Still didn't work? Might be time to call AppleCare or see an Apple Genius or a technician.
    Cheers!
    DALE

  • 24" iMac intel--Sleep issues--simple as widgets

    Had major sleep issue with brand new new gorgeous 24" intel 2.8 imac. It wouldn't autosleep no matter what I did--reset PRAM, SMU, archive and install, checked console logs, etc. After some common sense thought, I figured it might be a really simple thing. So, I turned off three of the animated widgets (the aquarium, the CPU monitor, and the beach scene). I tried each one individually, and any one of the three had sufficient CPU activity to prevent sleep. After deleting the three of them, everything was fine, and it now sleeps like a baby.

    My pleasure--one of the dead giveaways was that my Macbook Pro 15 Core duo had the same apps and files, but she lacked some of the widgets, and it slept perfectly from day one. This is my 5th Mac, and I know that some third party applications are often more damaging than they are positive. Widgets are not necessarily tested for compatibility with the system files of all models.
    Message was edited by: dr461

  • Pb 12" 1.3 GHz sleep issues

    To any and all that may advise:
    pb 12" 1.3 GHz 512 MB
    OS 10.4.2
    Recently my pb has been having intermittent sleep issues. I have tried resetting the power manager, and this has not resolved this issue. AHT gives all green lights for hardware operation, so I'm thinking this is a software/open firmware issue. When I close the display to sleep the machine, it appears to sleep normally, with the flashing led indicator in the latch, yet when trying to wake from this state sometimes I get a blank screen with no action at all, i.e. it will not wake normally. This issue seems to be time related, in that I can sleep the machine momentarily i.e. close the lid, sleep the computer and within 5 minutes it behaves normally. In other cases i.e. longer than 5 minutes, it wakes to the black screen.
    I have had colleagues that have complained of similar issues with their pb's and I curious as to how I might resolve this issue, and if there are many of us out there with a similar issue. So far, I've had 5 people who have complained of similar problems in my small circle of mac using friends! Any help and advice on how to ascertain if this is hardware or software would be appreciated. Thanks in advance for your time and efforts here.
    Sincerely,
    Sean

    Unless you are no longer under warranty, I would suggest calling Apple Care. Ask to speak to a product specialist, and they should have a good idea of how to fix the issue. I have never encountered this issue myself so I cannot help you directly, but usually if anyone has a solution it's going to be Apple.
    1 (800) APL-CARE

  • Problem with Thread.sleep()

    hi all,
    I am trying Thread.sleep() method to introduce a delay. In the program i ask the user to specify the value to be entered in Thread.sleep() (to indicate the amount of delay desired by the user). but strangely, if a low value is entered, i get a different result which actually should not happen as the rest of the calculation remains the same, only the amt of delay changes.
    could anyone help me with this
    cheers
    ankit

    [url http://forum.java.sun.com/thread.jsp?forum=31&thread=536288]Double-post

Maybe you are looking for

  • I think my e-mail is stolen

    Not sure this is the right forum for this problem, but Ive tryed now for 2 hours to get help, so please send this to the rigt adress if You are not the right one. My e-mail have for over 15 years been [email protected] When I am trying to sign in on

  • I get an labview.ex​e applicatio​n error when i use the driver of 4395A spectrum analyzer

    i have the message:unhandled exception in labview.exe(HP4395A_32.dll):0xc00000005:access violation. could you help me?

  • Confused about the confirmation in SRM

    Hi,my experts:     I work in SRM 5.0 ,Extended Classis Scenairo .     I want to do confirmation in SRM ,and then cope the document to ECC .     I thouht it should  be automatic.But Now I must do like this:       A.Do confirmation in SRM ;B.Run FM:IDO

  • £ is being reported in Oracle reports instead of £

    Hi, £ is being reported in Oracle reports instead of £, when actually "£" is stored in the database tables. I am using Oracle Reports version 9.0.2.3.0 with encoding="UTF-8" Any idea why? Cheers, Gautam

  • Help on transacted session  (urgent)

    Hi all, While creating a transacted Session using separate application for sender and receiver, should both the sender and receiver be in transacted mode?. Our session creation looks something like this. QueueSession session = connection.createQueueS