[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [MIT-Scheme-devel] DNS queries, blocking C calls, and non-file-descr

From: Taylor R Campbell
Subject: Re: [MIT-Scheme-devel] DNS queries, blocking C calls, and non-file-descriptor events
Date: Sun, 13 Aug 2006 16:56:49 +0000
User-agent: IMAIL/1.21; Edwin/3.116; MIT-Scheme/7.7.90.+

   Date: Sun, 13 Aug 2006 02:35:45 -0400
   From: Chris Hanson <address@hidden>

   I am not sure why the scalability of this is important.  Are you
   generating many DNS requests in a short time?  Or are you just trying to
   build the best thing you can, and that's bothering you?

In Scheme (both Scheme48 and MIT Scheme, as well as a number of other
Scheme systems, such as Gambit), operations that `block' should really
only block one Scheme thread; that is, Scheme threads shouldn't be
able to interfere with one another.  Calling out to C means that any
Scheme interrupts are deferred until control returns from C to Scheme.
Any C call that blocks, then, isn't playing nicely: it blocks all
Scheme threads.  `Blocking' operations, then, should really be non-
blocking operations at the C level that report their progress
incrementally, and my concern is not with scalability but with playing
nicely thus in this system.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]