Re: dealloc and scarce resources
Re: dealloc and scarce resources
- Subject: Re: dealloc and scarce resources
- From: Jean-Daniel Dupas <email@hidden>
- Date: Thu, 30 Jun 2011 10:02:17 +0200
Le 30 juin 2011 à 08:19, James Merkel a écrit :
>
> On Jun 29, 2011, at 11:07 PM, Kyle Sluder wrote:
>
>> On Wed, Jun 29, 2011 at 10:38 PM, James Merkel <email@hidden> wrote:
>>> Ok, thanks. For what I'm doing file descriptors are not a scarce resource.
>>
>> File descriptors are almost always a scarce resource. By default, each
>> process only gets 256 of them.
>>
>> --Kyle Sluder
>
> Ok, I'm looking at my application in Instruments File Activity. The column labeled FD I assume means file descriptors. Is that the total number of FDs in use at any given time?
No, Just like process ID, file descriptor number can be reused by the system. And there is absolutely no guarantee the system use simple incremental value for fd AFAIK.
-- Jean-Daniel
_______________________________________________
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