🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.misc
Article #1523

Re: Query

#1523
From: Jim Giles
Date: Thu, 16 Aug 1990 23:17
18 lines
1123 bytes
From article <126800008@.Prime.COM>, by EAF@.Prime.COM:
> [...]
>                                                             If your
> language I/O library is intelligent and you are reading sequential
> data, the language library will call on the OS to read the next disk
> block into memory, often before it is required.
> [...]

Not on UNIX it won't.  There is no system call for the library to use
which will start a read request and then return control to the library
while the read is asynchronously processing.  So, there's no point in
the library trying to read ahead, the system will cause the same delay
(statistically - there are variations independent of a given process)
whether you read ahead or not.

This is one of the most glaring deficiencies of UNIX.

J. Giles
Technical Details
Message-ID: <60345@lanl.gov>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!yale!cmcl2!lanl!jlg
References: <126800008@.Prime.COM>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!yale!cmcl2!lanl!jlg
From: jlg@lanl.gov (Jim Giles)
Newsgroups: comp.lang.misc
Subject: Re: Query
Message-ID: <60345@lanl.gov>
Date: 16 Aug 90 23:17:00 GMT
References: <126800008@.Prime.COM>
Organization: Los Alamos Natl Lab, Los Alamos, N.M.
Lines: 18