• 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: Creating NSAttributedString objects using WebKit in secondary thread
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Creating NSAttributedString objects using WebKit in secondary thread


  • Subject: Re: Creating NSAttributedString objects using WebKit in secondary thread
  • From: Dragan Milić <email@hidden>
  • Date: Tue, 12 May 2009 02:10:49 +0200

On uto 12. 05. 2009., at 01:55, Michael Ash wrote:

2009/5/11 Gwynne Raskind <email@hidden>:
This is workable, but make sure you use a fork()/exec() pair to re- execute
yourself in that case, and use argc/argv in your main() to determine which
mode to run in. Don't just use fork() by itself - there are severe limits to
what you can do in an only-fork()ed process. What those limits are isn't
entirely clear to me; perhaps someone else could elaborate on that?

The main problem is that fork() kills all other threads in the child process, leaving you with only the thread that called fork() active.

And that effectively invalidates fork()/exec() approach for me, since I cannot afford all other threads being killed.


Thanks for clarification.

Milke
_______________________________________________

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: Creating NSAttributedString objects using WebKit in secondary thread
      • From: Michael Ash <email@hidden>
References: 
 >Creating NSAttributedString objects using WebKit in secondary thread (From: Dragan Milić <email@hidden>)
 >Re: Creating NSAttributedString objects using WebKit in secondary thread (From: Douglas Davidson <email@hidden>)
 >Re: Creating NSAttributedString objects using WebKit in secondary thread (From: Dragan Milić <email@hidden>)
 >Re: Creating NSAttributedString objects using WebKit in secondary thread (From: "Stephen J. Butler" <email@hidden>)
 >Re: Creating NSAttributedString objects using WebKit in secondary thread (From: Dragan Milić <email@hidden>)
 >Re: Creating NSAttributedString objects using WebKit in secondary thread (From: Gwynne Raskind <email@hidden>)
 >Re: Creating NSAttributedString objects using WebKit in secondary thread (From: Michael Ash <email@hidden>)

  • Prev by Date: DVDPlayer & Deinterlacing
  • Next by Date: Re: Help debugging bindings issues
  • Previous by thread: Re: Creating NSAttributedString objects using WebKit in secondary thread
  • Next by thread: Re: Creating NSAttributedString objects using WebKit in secondary thread
  • Index(es):
    • Date
    • Thread