• 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: Concurrent tasks are getting hung up
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Concurrent tasks are getting hung up


  • Subject: Re: Concurrent tasks are getting hung up
  • From: Scott Ribe <email@hidden>
  • Date: Fri, 10 Oct 2014 10:40:10 -0600

On Oct 10, 2014, at 10:20 AM, Kevin Meaney <email@hidden> wrote:

> Now I've been optimizing to maximize throughput for processing image files...

Things depend VERY much on what exactly you're doing. I've optimized for throughput of processing image files, and found that number of worker threads equal to logical CPUs maximized throughput. (Except for 2 logical cores, where 3 threads were fastest, go figure...)

So my processing is probably more CPU-bound, where yours is more cache-bound. But anyway, point is, OP needs to experiment--most likely range is between (number of physical CPUs)/2 and (number of logical CPUs)x2.


--
Scott Ribe
email@hidden
http://www.elevated-dev.com/
(303) 722-0567 voice





_______________________________________________

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: Concurrent tasks are getting hung up
      • From: Kevin Meaney <email@hidden>
References: 
 >Concurrent tasks are getting hung up (From: Steve Mills <email@hidden>)
 >Re: Concurrent tasks are getting hung up (From: Jens Alfke <email@hidden>)
 >Re: Concurrent tasks are getting hung up (From: Steve Mills <email@hidden>)
 >Re: Concurrent tasks are getting hung up (From: Greg Parker <email@hidden>)
 >Re: Concurrent tasks are getting hung up (From: Steve Mills <email@hidden>)
 >Re: Concurrent tasks are getting hung up (From: Greg Parker <email@hidden>)
 >Re: Concurrent tasks are getting hung up (From: Steve Mills <email@hidden>)
 >Re: Concurrent tasks are getting hung up (From: Kyle Sluder <email@hidden>)
 >Re: Concurrent tasks are getting hung up (From: Jim Crate <email@hidden>)
 >Re: Concurrent tasks are getting hung up (From: Kevin Meaney <email@hidden>)

  • Prev by Date: Re: Scaling an NSImage to have exact pixel dimensions
  • Next by Date: Re: Concurrent tasks are getting hung up
  • Previous by thread: Re: Concurrent tasks are getting hung up
  • Next by thread: Re: Concurrent tasks are getting hung up
  • Index(es):
    • Date
    • Thread