• 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: NSFileHandle and thread safety
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSFileHandle and thread safety


  • Subject: Re: NSFileHandle and thread safety
  • From: "Jan E. Schotsman" <email@hidden>
  • Date: Wed, 27 Jul 2016 11:44:40 +0200


On Jul 25, 2016, at 9:37 PM, Daniel Stenmark wrote:

1. Can I write to two different files using two NSFIleHandles from two threads at the same time?

Yes.

2. Can I read from a single file using two NSFileHandles on two threads at the same time?

Why would you need to do that in the first place?

For example, the app has a resource file with tables. App can do multiple projects simultaneously on threads. Each project may want to access the tables.

@Graham, Jens too: thanks for the answers. I just wanted to be sure of this.

Jan E.

_______________________________________________

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: 
 >NSFileHandle and thread safety (From: "J.E. Schotsman" <email@hidden>)
 >Re: NSFileHandle and thread safety (From: Daniel Stenmark <email@hidden>)

  • Prev by Date: Re: NSImage from bitmap - then delete bitmap
  • Next by Date: Can I set a custom control's type in a XIB to NSOutlineView?
  • Previous by thread: Re: NSFileHandle and thread safety
  • Next by thread: Codesign assumes folder structure, fails.
  • Index(es):
    • Date
    • Thread