Richard Jones <rich annexia.org> writes:
> The second thread will wake up only when the data
arrives. The rest
> of the time it will be completely quiescent.
Do you mean if the slave thread is blocked by some IO
operation such as
Unix.read then it won't be so active ? Then how about the
following cases
with Unix.select?
- Unix.select with a negative waiting period, i.e. always
wait
(Should it be considered some kind of blocking ?)
- Unix.select with a positive waiting period, and inside a
loop kept running
(I guess this should be considered as active)
Beside, about Unix.select, another puzzling problem for me:
during the period
of waiting, is it possible that some file_descr are
initially available for
read(write) and then turns unavailable soon (e.g. operated
by other process),
then are they included in the return fd list?
-code17
Archives up to August 22, 2005 are also downloadable at http://www.connettivo.net/cntprojects/ocaml_beginners/
The archives of the very official ocaml list (the seniors'
one) can be found at http://caml.inria.fr
Attachments are banned and you're asked to be polite, avoid
flames etc.
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http:/
/groups.yahoo.com/group/ocaml_beginners/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
ht
tp://groups.yahoo.com/group/ocaml_beginners/join
(Yahoo! ID required)
<*> To change settings via email:
mailto:ocaml_beginners-digest@yahoogroups.com
mailto:ocaml_beginners-fullfeatured@yahoogroups.com
<*> To unsubscribe from this group, send an email to:
ocaml_beginners-unsubscribe@yahoogroups.com
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.c
om/info/terms/
|