• 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: Self-scheduling threading
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Self-scheduling threading


  • Subject: Re: Self-scheduling threading
  • From: Shaun Wexler <email@hidden>
  • Date: Thu, 17 Mar 2005 15:51:23 -0800

On Mar 17, 2005, at 2:04 PM, Bob Ippolito wrote:

You still haven't stated what you plan to gain by using explicitly scheduled threads rather than pre-emptive OS scheduled threads. Chances are, OS threads are fine, and this premature optimization (explicitly scheduled threads) is potentially (probably) not an optimization at all in the first place.

He won't do any better than the default granularity of 1 ms, regardless. For each type of duty (realtime-driven, low-latency, rendering, etc). MacFOH spawns up to one worker thread per CPU, and each services their common work queue during its cycle. Bloody efficient. I also strive to LOWER the priority of threads rather than raise them, and making them RR/fixed keeps the important background tasks churning along without disrupting the user experience such as when many raised-priority threads are in competition.
--
Shaun Wexler
MacFOH
http://www.macfoh.com


Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Self-scheduling threading
      • From: Shaun Wexler <email@hidden>
References: 
 >Self-scheduling threading (From: Michael Koehmstedt <email@hidden>)
 >Re: Self-scheduling threading (From: Dustin Voss <email@hidden>)
 >Re: Self-scheduling threading (From: Michael Koehmstedt <email@hidden>)
 >Re: Self-scheduling threading (From: Shawn Erickson <email@hidden>)
 >Re: Self-scheduling threading (From: Michael Koehmstedt <email@hidden>)
 >Re: Self-scheduling threading (From: Bob Ippolito <email@hidden>)

  • Prev by Date: Re: Self-scheduling threading
  • Next by Date: Re: Self-scheduling threading
  • Previous by thread: [OT] Re: Self-scheduling threading
  • Next by thread: Re: Self-scheduling threading
  • Index(es):
    • Date
    • Thread