• 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: NSTask and piped commands
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSTask and piped commands


  • Subject: Re: NSTask and piped commands
  • From: Jens Alfke <email@hidden>
  • Date: Tue, 18 May 2010 15:18:46 -0700

On May 18, 2010, at 3:04 PM, René v Amerongen wrote:

> Maybe just an imagination from me, but it looks slow all that moving of results to the next task.

But that’s exactly what the shell does! The “|” operator spawns a process for each side and hooks the output of the first to the input of the second. There’s not really any copying going on — pipes are pretty fundamental to the way the Unix kernel works and are highly optimized.

—Jens_______________________________________________

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

References: 
 >NSTask and piped commands (From: appledev <email@hidden>)
 >Re: NSTask and piped commands (From: Jens Alfke <email@hidden>)
 >Re: NSTask and piped commands (From: René v Amerongen <email@hidden>)

  • Prev by Date: Re: NSTask and piped commands
  • Next by Date: Re: Programmatic Binding
  • Previous by thread: Re: NSTask and piped commands
  • Next by thread: Re: NSTask and piped commands
  • Index(es):
    • Date
    • Thread