From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,d834ddf5e796330c,start X-Google-Attributes: gid1164f8,public From: w2zhang@neumann.uwaterloo.ca (Weiye (Wayne) Zhang) Subject: ? asynchronous read: aio_read () Date: 1995/04/05 Message-ID: #1/1 X-Deja-AN: 100802512 sender: news@undergrad.math.uwaterloo.ca (news spool owner) organization: University of Waterloo newsgroups: comp.sys.dec Hi everybody, I got a problem on using asynchronous read ("aio_read()") in UNIX environment. Any suggestions will be very helpful to me. I use asynchronous reads in my C program on DEC OSF/1 V2.0 (on an alpha machine). When I issue more than 64 asynchronous reads using aio_read(), the 65th call of aio_read() will be blocked and failed. Even if I use aio_read() in the synchronous way, i.e., to issue the next aio_read after the previous aio_read has read the data into a buffer, the 65th aio_read still fails. So I can not call aio_read() more than 64 times in one process, but my experiment requires thousands of aio_read. Besides the man page, I could not find any documents about aio_read. On DEC, it seems that aio_read() is implemented using threads. I can not find anything further. Any info may help me to find my way out. I'm looking forward to your comments. Thank you for your time. -- Wayne _____________________________________________________________________________ Weiye (Wayne) Zhang email : w2zhang@bluebox.uwaterloo.ca Dept. of Computer Science office: Data Structures Lab (DC 2306D) Univ. of Waterloo phone : (519)-888-4567 x 6107 (o) Waterloo, Ont. http://bluebox.uwaterloo.ca/~w2zhang Canada, N2L 3G1 supervisor: Dr. Paul Larson