• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Please stay awake!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Please stay awake!


  • Subject: Re: Please stay awake!
  • From: Greg Parker <email@hidden>
  • Date: Mon, 09 Dec 2013 15:24:23 -0800

On Dec 9, 2013, at 3:17 PM, Jim Elliott <email@hidden> wrote:
> I have a program that solves problems that are very computationally intense.  I divide up the work and create an NSOperation for each segment.  Then I put the operations in NSOperationQueue, and start the queue.  Expecting the job to take three or four hours, I go to dinner.
>
> When I return, and look at my progress screen, I find that processing has stopped sometime about an hour into the job.  My mouse events  restart the job, and it later completes, about four hours later than estimated.
>
> Apparently, after a give time interval without user intervention, MAC OS just goes to sleep until some user input is detected.  I mean not just screen saver, but processing shutdown.
>
> Any ideas as to how I keep my megajob running in my absence?

Programmatically:
https://developer.apple.com/library/mac/qa/qa1340/_index.html

From the command line:
man caffeinate


--
Greg Parker     email@hidden     Runtime Wrangler



_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden


References: 
 >Please stay awake! (From: Jim Elliott <email@hidden>)

  • Prev by Date: Please stay awake!
  • Next by Date: Re: Please stay awake!
  • Previous by thread: Please stay awake!
  • Next by thread: Re: Please stay awake!
  • Index(es):
    • Date
    • Thread