• 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: Scott Ribe <email@hidden>
  • Date: Wed, 16 Mar 2005 20:28:31 -0700

> Somehow this approach seems simpler to
> me than beating on the stack with memcpy :) :) Man that technique
> freaks me. Maybe it works but... so gross! And I'd be extremely
> concerned about using it in production code. Memcpy'ing over the
> currently live stack just doesn't seem safe.

Yeah, I think a true need for coroutines is kind of unlikely to ever crop up
on the Cocoa list. FYI I found this when searching for a solution to some
simulation modeling, where an obvious and conceptually easy approach would
involve a thread per component modeled. The problem though is that it's not
practical to run 100,000 threads in a process ;-) And there were other
issues involving encapsulation of state and simplicity of expressing the
component calculations, that led to a need for coroutines. Fairly exotic
stuff.

--
Scott Ribe
email@hidden
http://www.killerbytes.com/
(303) 665-7007 voice


 _______________________________________________
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: Bob Ippolito <email@hidden>
References: 
 >Re: Self-scheduling threading (From: John Stiles <email@hidden>)

  • Prev by Date: Getting notified when a document closes
  • Next by Date: Re: Getting notified when a document closes
  • Previous by thread: Re: Self-scheduling threading
  • Next by thread: Re: Self-scheduling threading
  • Index(es):
    • Date
    • Thread