caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* Thread and Unix select
@ 2005-03-24 14:37 Alex Baretta
  2005-03-25 19:11 ` [Caml-list] " Kip Macy
  0 siblings, 1 reply; 3+ messages in thread
From: Alex Baretta @ 2005-03-24 14:37 UTC (permalink / raw)
  To: Ocaml

What are the differences between Unix.select and Thread.select? Is it 
safe to use the former in a multithreaded program?

Alex


-- 
*********************************************************************
http://www.barettadeit.com/
Baretta DE&IT
A division of Baretta SRL

tel. +39 02 370 111 55
fax. +39 02 370 111 54

Our technology:

The Application System/Xcaml (AS/Xcaml)
<http://www.asxcaml.org/>

The FreerP Project
<http://www.freerp.org/>


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Caml-list] Thread and Unix select
  2005-03-24 14:37 Thread and Unix select Alex Baretta
@ 2005-03-25 19:11 ` Kip Macy
  2005-03-25 20:58   ` Gerd Stolpmann
  0 siblings, 1 reply; 3+ messages in thread
From: Kip Macy @ 2005-03-25 19:11 UTC (permalink / raw)
  To: Alex Baretta; +Cc: Ocaml

Without looking at the implementation, I would guess that a
Unix.select with a non-zero timeout would cause the whole process to
block - whereas an equivalent call to Thread.select would only cause
the calling thread to block.
              -Kip


On Thu, 24 Mar 2005 15:37:10 +0100, Alex Baretta <alex@barettadeit.com> wrote:
> What are the differences between Unix.select and Thread.select? Is it
> safe to use the former in a multithreaded program?
> 
> Alex
> 
> --
> *********************************************************************
> http://www.barettadeit.com/
> Baretta DE&IT
> A division of Baretta SRL
> 
> tel. +39 02 370 111 55
> fax. +39 02 370 111 54
> 
> Our technology:
> 
> The Application System/Xcaml (AS/Xcaml)
> <http://www.asxcaml.org/>
> 
> The FreerP Project
> <http://www.freerp.org/>
> 
> _______________________________________________
> Caml-list mailing list. Subscription management:
> http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list
> Archives: http://caml.inria.fr
> Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
> Bug reports: http://caml.inria.fr/bin/caml-bugs
>


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Caml-list] Thread and Unix select
  2005-03-25 19:11 ` [Caml-list] " Kip Macy
@ 2005-03-25 20:58   ` Gerd Stolpmann
  0 siblings, 0 replies; 3+ messages in thread
From: Gerd Stolpmann @ 2005-03-25 20:58 UTC (permalink / raw)
  To: Kip Macy; +Cc: Alex Baretta, Ocaml

Am Freitag, den 25.03.2005, 11:11 -0800 schrieb Kip Macy:
> Without looking at the implementation, I would guess that a
> Unix.select with a non-zero timeout would cause the whole process to
> block - whereas an equivalent call to Thread.select would only cause
> the calling thread to block.

Once upon a time, this was the intention of Thread.select. In current
ocaml, one can also call Unix.select, and only the calling thread is
blocked.

Gerd
>               -Kip
> 
> 
> On Thu, 24 Mar 2005 15:37:10 +0100, Alex Baretta <alex@barettadeit.com> wrote:
> > What are the differences between Unix.select and Thread.select? Is it
> > safe to use the former in a multithreaded program?
> > 
> > Alex
> > 
> > --
> > *********************************************************************
> > http://www.barettadeit.com/
> > Baretta DE&IT
> > A division of Baretta SRL
> > 
> > tel. +39 02 370 111 55
> > fax. +39 02 370 111 54
> > 
> > Our technology:
> > 
> > The Application System/Xcaml (AS/Xcaml)
> > <http://www.asxcaml.org/>
> > 
> > The FreerP Project
> > <http://www.freerp.org/>
> > 
> > _______________________________________________
> > Caml-list mailing list. Subscription management:
> > http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list
> > Archives: http://caml.inria.fr
> > Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
> > Bug reports: http://caml.inria.fr/bin/caml-bugs
> >
> 
> _______________________________________________
> Caml-list mailing list. Subscription management:
> http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list
> Archives: http://caml.inria.fr
> Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
> Bug reports: http://caml.inria.fr/bin/caml-bugs
> 
-- 
------------------------------------------------------------
Gerd Stolpmann * Viktoriastr. 45 * 64293 Darmstadt * Germany 
gerd@gerd-stolpmann.de          http://www.gerd-stolpmann.de
------------------------------------------------------------



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2005-03-25 20:58 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-03-24 14:37 Thread and Unix select Alex Baretta
2005-03-25 19:11 ` [Caml-list] " Kip Macy
2005-03-25 20:58   ` Gerd Stolpmann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).