From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andy Wingo Newsgroups: gmane.lisp.guile.devel Subject: Re: ethreads: event-driven cooperative threads Date: Fri, 23 Mar 2012 10:25:33 +0100 Message-ID: <87obrnmzxu.fsf@pobox.com> References: <87wr6cmx63.fsf@pobox.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1332505092 19397 80.91.229.3 (23 Mar 2012 12:18:12 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 23 Mar 2012 12:18:12 +0000 (UTC) Cc: guile-devel To: Nala Ginrut Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Fri Mar 23 13:18:04 2012 Return-path: Envelope-to: guile-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SB3RR-0003mq-Iu for guile-devel@m.gmane.org; Fri, 23 Mar 2012 13:18:01 +0100 Original-Received: from localhost ([::1]:45600 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SB3RQ-0007l9-Um for guile-devel@m.gmane.org; Fri, 23 Mar 2012 08:18:00 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:35635) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SB3RJ-0007eV-P8 for guile-devel@gnu.org; Fri, 23 Mar 2012 08:17:58 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SB3RF-0003FR-9E for guile-devel@gnu.org; Fri, 23 Mar 2012 08:17:53 -0400 Original-Received: from a-pb-sasl-sd.pobox.com ([74.115.168.62]:42913 helo=sasl.smtp.pobox.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SB3RF-0003Ew-3z for guile-devel@gnu.org; Fri, 23 Mar 2012 08:17:49 -0400 Original-Received: from sasl.smtp.pobox.com (unknown [127.0.0.1]) by a-pb-sasl-sd.pobox.com (Postfix) with ESMTP id 4563670B2; Fri, 23 Mar 2012 08:17:47 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=pobox.com; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type; s=sasl; bh=f8WiXUVEdbMb14hp+ftsv9LEt30=; b=rH5kLO SsirUST1k2P1VDVeykumg4rb5WhdXFie4YMcfnG7bB+h5kFpr7GacYshDsrL9Ur4 wx0OyM6z0dowsmZ9HU/wftQYrulorVEDuH6Ytf5lplDzHvjc2nQm5HjvrKG77EtD wq0D0rGcRNDrzyYRFHgFXcPnwyFzP5w7cPRI0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=pobox.com; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type; q=dns; s=sasl; b=wm100g3OdUxp6LdlpsJgeYW5QIxkhah7 /hROTN09eoWrgVepb6bPlQVOTF2UmMhDWEUlNBr0KPaxOToo5ubCs4EKA4KNef9I S4xpRaBF+HqE/lo8OvkGvB0jFLIwfZGi4GJL2nhPKF26P6hpJUMqHPkycHUj6oVn yZ/UCWyOx9A= Original-Received: from a-pb-sasl-sd.pobox.com (unknown [127.0.0.1]) by a-pb-sasl-sd.pobox.com (Postfix) with ESMTP id 3F0B970B1; Fri, 23 Mar 2012 08:17:47 -0400 (EDT) Original-Received: from badger (unknown [90.164.198.39]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by a-pb-sasl-sd.pobox.com (Postfix) with ESMTPSA id 8F43C70B0; Fri, 23 Mar 2012 08:17:46 -0400 (EDT) In-Reply-To: (Nala Ginrut's message of "Fri, 23 Mar 2012 10:00:15 +0800") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3 (gnu/linux) X-Pobox-Relay-ID: 332519F4-74E2-11E1-87BF-65B1DE995924-02397024!a-pb-sasl-sd.pobox.com X-detected-operating-system: by eggs.gnu.org: Solaris 10 (beta) X-Received-From: 74.115.168.62 X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Original-Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.devel:14168 Archived-At: On Fri 23 Mar 2012 03:00, Nala Ginrut writes: > Cool~but I think it didn't support Non-Block IO, right? It does support non-blocking I/O, yes. fdes->eport sets O_NONBLOCK on the fd. Any time an operation would block causes the operation to suspend the current continuation, and ask the epoll loop to resume it when the fd becomes readable/writable, and continue scheduling other threads. Andy -- http://wingolog.org/