[comp.sys.mac.programmer] How many files can I open

hawley@adobe.COM (Steve Hawley) (12/18/90)

In article <1990Dec16.120648.2536@panix.uucp> alexis@panix.uucp (Alexis Rosen) writes:
>So I did what I should have all along... wrote a bit of code to test things
>out. I came up with some excellent news! On my IIfx, I could open about 340
>simultaneous files! This is still not in a leauge with a "real" OS, but it's
>a damn sight closer than 86 files (or 160 on AppleShare).

For sheer amusement, I tried the following program on a Sun 3/80 running
SunOS (Sun's UNIX) version 4.0.3:

#include <stdio.h>

main(argc, argv)
int argc;
char **argv;
{
        FILE *fp;
        int i;

        for (i=0; (fp = fopen(argv[0], "r"))!=NULL; i++);

        printf("Opened %d files.\n", i);
}

It reports opening 61 files.

I guess SunOS isn't a "real" OS either.  :')

Yes, I know, it's on per process basis, but still...

Steve Hawley
hawley@adobe.com
-- 
"I'm sick and tired of being told that ordinary decent people are fed up with
being sick and tired.  I know I'm certainly not, and I'm sick and tired of
begin told that I am." -Monty Python