Path: utzoo!mnetor!tmsoft!torsqnt!news-server.csri.toronto.edu!cs.utexas.edu!usc!elroy.jpl.nasa.gov!decwrl!adobe!hawley From: hawley@adobe.COM (Steve Hawley) Newsgroups: comp.sys.mac.programmer Subject: How many files can I open (was Re: Change in...) Message-ID: <9243@adobe.UUCP> Date: 18 Dec 90 00:14:03 GMT References: <1990Dec4.013359.25319@panix.uucp> <1990Dec16.120648.2536@panix.uucp> Reply-To: hawley@adobe.UUCP (Steve Hawley) Organization: Adobe Systems Incorporated, Mountain View Lines: 35 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 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