• 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
Please stay awake!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Please stay awake!


  • Subject: Please stay awake!
  • From: Jim Elliott <email@hidden>
  • Date: Tue, 10 Dec 2013 00:17:01 +0100

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?

Incidentally, sometimes the work performed by each of the operations (threads) is widely asymmetrical?  Any explanations?

j
Jim Elliott
email@hidden
2732 NW Thurman Street, Portland, OR 97210 USA
Tel. +1 (503) 481-5370
Motzstrasse 83A, 10799 Berlin, Germany
+49 (30) 269-47848
+49 (179) 757-9132





_______________________________________________

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


  • Follow-Ups:
    • Re: Please stay awake!
      • From: Jens Alfke <email@hidden>
    • Re: Please stay awake!
      • From: Greg Parker <email@hidden>
  • Prev by Date: Re: Threaded drawing
  • Next by Date: Re: Please stay awake!
  • Previous by thread: Re: Video bit rate
  • Next by thread: Re: Please stay awake!
  • Index(es):
    • Date
    • Thread