The documentation for OS.readSelect is below OS.writeSelect. As written
there, it will suspend the current thread until data is available for
reading. A usual OS.read would block the whole Oz emulator (i.e. all
threads) waiting for data to be available. You usually only need it when
reading from sockets or devices, not regular files.

Cheers,

Jorge.

kanchana vasudevan escreveu:
> Respected members,
>                    Can you please elucidate more on the command  {
> OS.readSelect Desc}, which is used for blocking process in the context of
> files. The explanation in the mozart documentation is not sufficient and
> clear. An early reply would be most helpful.
> Regards,
> Kanchana Vasudevan
>
>
> On 3/12/07, kanchana vasudevan <[EMAIL PROTECTED]> wrote:
>>
>> ok sure. We will not do it again.
>> kanchana
>>
>>
>>  On 3/12/07, Raphael Collet <[EMAIL PROTECTED]> wrote:
>> >
>> > Please do not send me personal email with these questions.  Post them
>> on
>> > the mozart-users mailing list instead.
>> >
>> > Regards,
>> > raph
>> >
>> > kanchana vasudevan wrote:
>> > > Hello Sir,
>> > >             The example which you had sent was very helpful. In this
>> > > regard, I would like to know how the variables 'In/Out'  are
>> assigned
>> > to
>> > > the file descriptors in the command
>> > > {OS.pipe 'ps' ['-A'] Pid In#Out} and how it can be reassigned to
>> > > multiple files?
>> > > Regards,
>> > > Kanchana Vasudevan
>> > >
>> >
>> >
>>
> _________________________________________________________________________________
> mozart-users mailing list
> [email protected]
> http://www.mozart-oz.org/mailman/listinfo/mozart-users


Jorge M. Pelizzoni
ICMC - Universidade de São Paulo

_________________________________________________________________________________
mozart-users mailing list                               
[email protected]
http://www.mozart-oz.org/mailman/listinfo/mozart-users

Reply via email to